Full crud with the delete

This commit is contained in:
2023-01-18 19:53:58 +01:00
parent ddb3706e44
commit aa4399ea20
3 changed files with 25 additions and 7 deletions

View File

@@ -45,4 +45,10 @@ export class CrudService extends ApiService {
model
);
}
public delete(resource: string, model: any) {
return this.http.delete<{ menu: [{}] }>(
`${this.api_root}/${resource.toLowerCase()}/${model._id}`
);
}
}