Skip to content

Commit

Permalink
Fix api url typo
Browse files Browse the repository at this point in the history
  • Loading branch information
KilianBoute committed Jun 24, 2024
1 parent 0c4e611 commit f4009a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
API_URL=http://api.facialaccess.uug.ai/
API_URL=http://api.facialaccess.uug.ai/api/
2 changes: 1 addition & 1 deletion ui/src/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const authOptions: NextAuthOptions = {
password: { label: "Password", type: "password" },
},
async authorize(credentials, req) {
const res = await fetch(process.env.API_URL + "/login" || "", {
const res = await fetch(process.env.API_URL + "login" || "", {
method: "POST",
body: JSON.stringify(credentials),
headers: { "Content-Type": "application/json" },
Expand Down

0 comments on commit f4009a3

Please sign in to comment.