Skip to content

Commit c809824

Browse files
committed
Fix : auth route fixed
1 parent d779e9f commit c809824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/login/page.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function LoginPage() {
4444

4545
if (isLogin) {
4646
// Verify captcha first via API route
47-
const verifyRes = await fetch('/auth', {
47+
const verifyRes = await fetch('/api/auth', {
4848
method: 'POST',
4949
headers: { 'Content-Type': 'application/json' },
5050
body: JSON.stringify({ email, password, captchaToken, action: 'login' }),
@@ -59,7 +59,7 @@ export default function LoginPage() {
5959
router.push('/dashboard')
6060
} else {
6161
// Signup flow remains the same
62-
const res = await fetch('/auth', {
62+
const res = await fetch('/api/auth', {
6363
method: 'POST',
6464
headers: { 'Content-Type': 'application/json' },
6565
body: JSON.stringify({ email, password, captchaToken, action: 'signup' }),

0 commit comments

Comments
 (0)