mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:43:25 +00:00
add login, register, logout and devices list (including remove device)
This commit is contained in:
@@ -38,7 +38,10 @@ export async function f<T>(url: string, ops?: FetcherOptions): Promise<T> {
|
||||
const fullUrl = makeFullUrl(url, ops);
|
||||
const response = await fetch(fullUrl, {
|
||||
method: ops?.method ?? "GET",
|
||||
headers: ops?.headers,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
...ops?.headers,
|
||||
},
|
||||
body: ops?.body ? JSON.stringify(ops.body) : undefined,
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user