WIP - page layout first version working

This commit is contained in:
Francisco Gaona
2025-12-22 23:48:09 +01:00
parent be6e34914e
commit eff8f32c9d
26 changed files with 2972 additions and 39 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',