This commit is contained in:
NotII
2025-03-23 21:59:28 +00:00
parent eb2a88b896
commit 6ab5a9ac43
3 changed files with 10 additions and 8 deletions

View File

@@ -120,7 +120,7 @@ export default function LoginPage() {
setIsLoading(true);
try {
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/auth/login`, {
const response = await fetch(`/api/auth/login`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ username, password }),