mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 20:49:42 +03:00
Added getting post by its media group id
This commit is contained in:
@@ -26,4 +26,10 @@ export class PostController {
|
||||
async getPost(@Param('postId') postId: string) {
|
||||
return await this.postService.getPost(postId);
|
||||
}
|
||||
|
||||
@ApiOperation({ description: 'Getting a post by its media group id' })
|
||||
@Get('get-by-media-group-id/:mediaGroupId')
|
||||
async getByMediaGroup(@Param('mediaGroupId') mediaGroupId: string) {
|
||||
return await this.postService.getByMediaGroup(mediaGroupId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user