Browse Source

Fix trailing / causes nginx to redirect to invalid url

Francesco Silvetti 4 years ago
parent
commit
ca17748dc8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/api/auth.ts

+ 1 - 1
app/src/api/auth.ts

@@ -16,5 +16,5 @@ export function login(username: string, password: string) {
     mode: "cors",
     mode: "cors",
     redirect: "follow",
     redirect: "follow",
   };
   };
-  return fetch(`${apiURL}login/`, requestOptions);
+  return fetch(`${apiURL}login`, requestOptions);
 }
 }