This commit is contained in:
@ -6,7 +6,7 @@ export function cn(...inputs: ClassValue[]) {
|
||||
}
|
||||
|
||||
export async function httpApi<T>(route: string): Promise<T> {
|
||||
let response = await fetch(+"/api" + route);
|
||||
let response = await fetch("/api" + route);
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`HTTP error! status: ${response.status}`);
|
||||
|
Reference in New Issue
Block a user