diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts index cf70082c..e48f51d8 100644 --- a/frontend/src/api/index.ts +++ b/frontend/src/api/index.ts @@ -42,6 +42,7 @@ export const mapApi = { list: () => api.get('/maps'), create: (data: any) => api.post('/maps', data), update: (id: number, data: any) => api.put(`/maps/${id}`, data), + delete: (id: number) => api.delete(`/maps/${id}`), createWithTemplate: (data: any) => api.post('/maps/create-with-template', data), }