fixing admin pages
CI / test (push) Successful in 6s

This commit is contained in:
2026-01-25 14:22:58 -05:00
parent e49dc96522
commit 3aee0e6755
11 changed files with 311 additions and 10 deletions
+3 -1
View File
@@ -24,7 +24,9 @@ export default function AdminLandingPage() {
try {
setLoading(true);
setError(null);
const res = await fetch(`${API_BASE_URL}/api/admin/dashboard/overview`);
const res = await fetch('/api/admin/dashboard/overview', {
credentials: 'include',
});
if (!res.ok) {
throw new Error(`Failed to load dashboard (${res.status})`);
}