Added page layouts
This commit is contained in:
@@ -143,6 +143,15 @@ export const useApi = () => {
|
||||
return handleResponse(response)
|
||||
},
|
||||
|
||||
async patch(path: string, data: any) {
|
||||
const response = await fetch(`${getApiBaseUrl()}/api${path}`, {
|
||||
method: 'PATCH',
|
||||
headers: getHeaders(),
|
||||
body: JSON.stringify(data),
|
||||
})
|
||||
return handleResponse(response)
|
||||
},
|
||||
|
||||
async delete(path: string) {
|
||||
const response = await fetch(`${getApiBaseUrl()}/api${path}`, {
|
||||
method: 'DELETE',
|
||||
|
||||
Reference in New Issue
Block a user