weee
This commit is contained in:
@@ -47,7 +47,7 @@ export default function AdminDashboardPage() {
|
||||
const fetchAnalytics = async () => {
|
||||
try {
|
||||
setLoading(true);
|
||||
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/admin/analytics`, {
|
||||
const response = await fetch(`/api/admin/analytics`, {
|
||||
headers: {
|
||||
'Authorization': `Bearer ${process.env.NEXT_PUBLIC_JWT_SECRET}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user