Merge branch 'main' of https://github.com/natjms/resin into main

This commit is contained in:
Nat 2022-05-30 14:58:26 -07:00
commit eb9f047a04
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ export async function post(url, token = false) {
return resp;
}
export async function get(url, token = false, data = false) {
export async function get(url, token , data = false) {
let completeURL;
if (data) {
let params = new URLSearchParams(data);
@ -85,7 +85,7 @@ export async function get(url, token = false, data = false) {
return resp;
}
export async function _delete(url, token = false) {
export async function _delete(url, token) {
const resp = await fetch(url, {
method: "DELETE",
headers: token