all: Aggiunte varie feature e riscritte svariate cose
This commit is contained in:
@@ -29,6 +29,14 @@ export const server = {
|
||||
body: JSON.stringify(body),
|
||||
})
|
||||
|
||||
return await res.json()
|
||||
},
|
||||
async delete(url: string) {
|
||||
const res = await fetch(prependBaseUrl(url), {
|
||||
method: 'DELETE',
|
||||
credentials: 'include',
|
||||
})
|
||||
|
||||
return await res.json()
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user