Migrate from gin to echo framework #77

Merged
jacob1123 merged 11 commits from migrate-to-echo into master 2022-08-21 22:04:28 +02:00
Showing only changes of commit 71be1ac49f - Show all commits

View File

@ -13,7 +13,10 @@ export function POST(path: string, body: FormData | string | null) {
const sessionStore = useSessionStore();
return fetch(BASE_URL + path, {
method: "POST",
headers: sessionStore.AuthHeaders,
headers: {
...sessionStore.AuthHeaders,
"Content-Type": "application/json"
},
body: body,
});
}