mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
refactor(js): remove RequestBuilder
This commit is contained in:
parent
bbe3c2ea71
commit
4910f1f0f4
4 changed files with 28 additions and 86 deletions
|
@ -52,14 +52,7 @@ class WebAuthnHandler {
|
|||
url += "?username=" + username;
|
||||
}
|
||||
|
||||
return fetch(url, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"X-Csrf-Token": getCsrfToken()
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
});
|
||||
return sendPOSTRequest(url, data);
|
||||
}
|
||||
|
||||
async get(urlKey, username) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue