From 9d952483f250a97cbeab4061fa1c4e68341b330f Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 28 Aug 2022 23:22:15 +0300 Subject: posting thread and image works --- src/lib/api.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/lib/api.ts') diff --git a/src/lib/api.ts b/src/lib/api.ts index 221a7b3..645fc23 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -2,8 +2,6 @@ const base = 'https://localhost:5001/api' export async function api(method: string, resource: string, data?: any) { console.log("API USED", method, resource, data); - - return await fetch(`${base}/${method}/${resource}`, { method, headers: { -- cgit v1.2.3