Update frontend to allow categories
This commit is contained in:
@@ -16,7 +16,6 @@ export const apiRequest = async <T = any>(endpoint: string, method: string = "GE
|
||||
throw new Error("No authentication token found");
|
||||
}
|
||||
|
||||
// ✅ API Request Options
|
||||
const options: RequestInit = {
|
||||
method,
|
||||
headers: {
|
||||
@@ -41,7 +40,6 @@ export const apiRequest = async <T = any>(endpoint: string, method: string = "GE
|
||||
throw new Error(`Failed to ${method} ${endpoint}: ${errorMessage}`);
|
||||
}
|
||||
|
||||
// ✅ Return JSON response
|
||||
return res;
|
||||
} catch (error: unknown) {
|
||||
if (error instanceof Error) {
|
||||
|
||||
Reference in New Issue
Block a user