Merge branch 'main' of https://github.com/natjms/resin into main
This commit is contained in:
commit
eb9f047a04
|
@ -66,7 +66,7 @@ export async function post(url, token = false) {
|
||||||
return resp;
|
return resp;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function get(url, token = false, data = false) {
|
export async function get(url, token , data = false) {
|
||||||
let completeURL;
|
let completeURL;
|
||||||
if (data) {
|
if (data) {
|
||||||
let params = new URLSearchParams(data);
|
let params = new URLSearchParams(data);
|
||||||
|
@ -85,7 +85,7 @@ export async function get(url, token = false, data = false) {
|
||||||
return resp;
|
return resp;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function _delete(url, token = false) {
|
export async function _delete(url, token) {
|
||||||
const resp = await fetch(url, {
|
const resp = await fetch(url, {
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
headers: token
|
headers: token
|
||||||
|
|
Loading…
Reference in New Issue