agregar manejo de DELETE the comunicados en controlador de API
This commit is contained in:
parent
6c6b944da7
commit
1fd25ee469
|
@ -428,6 +428,11 @@ export class AppController {
|
||||||
return this.appService.findPost(paramPost);
|
return this.appService.findPost(paramPost);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Delete('post/deletePost/:id')
|
||||||
|
deletePost(@Param('id') id: string) {
|
||||||
|
return this.appService.deletePost(id);
|
||||||
|
}
|
||||||
|
|
||||||
// #==== API Comment
|
// #==== API Comment
|
||||||
|
|
||||||
@Post('post/createComment')
|
@Post('post/createComment')
|
||||||
|
|
Loading…
Reference in New Issue