feature: avatar uploads
This commit is contained in:
parent
ffe0678e5b
commit
01768da647
7 changed files with 139 additions and 18 deletions
|
@ -24,6 +24,8 @@ const api = {
|
|||
if (options.json) {
|
||||
headers["Content-Type"] = "application/json";
|
||||
fetch_options.body = JSON.stringify(options.json);
|
||||
} else if (options.body) {
|
||||
fetch_options.body = options.body;
|
||||
}
|
||||
|
||||
const response = await fetch(url, fetch_options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue