fix admin pages

This commit is contained in:
root
2026-05-17 17:37:13 -04:00
parent 0b73504455
commit 5ea1780134
12 changed files with 42 additions and 53 deletions
+2 -3
View File
@@ -3,8 +3,7 @@
import Link from 'next/link'
import { useState } from 'react'
import PublicShell from '@/components/PublicShell'
const API_BASE = '/api/v1'
import { ADMIN_API_BASE } from '@/lib/api'
export default function AdminForgotPasswordPage() {
const [email, setEmail] = useState('')
@@ -17,7 +16,7 @@ export default function AdminForgotPasswordPage() {
setLoading(true)
setError(null)
try {
const res = await fetch(`${API_BASE}/admin/auth/forgot-password`, {
const res = await fetch(`${ADMIN_API_BASE}/admin/auth/forgot-password`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email }),