Browse Source

Try more logging

ghorsington 4 years ago
parent
commit
7a35a624ef
2 changed files with 2 additions and 1 deletions
  1. 2 0
      web/src/routes/_layout.svelte
  2. 0 1
      web/src/routes/logs.svelte

+ 2 - 0
web/src/routes/_layout.svelte

@@ -11,6 +11,8 @@
   ) {
   ) {
     const authResult = await this.fetch("/login/check", { credentials: "include" });
     const authResult = await this.fetch("/login/check", { credentials: "include" });
     const result = (await authResult.json()) as AuthInfo;
     const result = (await authResult.json()) as AuthInfo;
+    console.log(result);
+    console.log(path);
     if (path.startsWith("/login/")) {
     if (path.startsWith("/login/")) {
       if (result.loggedIn) {
       if (result.loggedIn) {
         return this.redirect(302, "/");
         return this.redirect(302, "/");

+ 0 - 1
web/src/routes/logs.svelte

@@ -62,7 +62,6 @@
             credentials: "include",
             credentials: "include",
             headers: {
             headers: {
                 Accept: "application/json",
                 Accept: "application/json",
-                "Content-Type": "application/json",
             },
             },
         });
         });