Full crud with the delete
This commit is contained in:
@@ -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}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user