Added page layouts

This commit is contained in:
Francisco Gaona
2025-12-23 09:44:05 +01:00
parent be6e34914e
commit 838a010fb2
26 changed files with 3002 additions and 40 deletions

View File

@@ -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',