diff --git a/src/modules/blogs/blogs.controller.ts b/src/modules/blogs/blogs.controller.ts index db0a8a36d..f7f8ebc0f 100644 --- a/src/modules/blogs/blogs.controller.ts +++ b/src/modules/blogs/blogs.controller.ts @@ -80,7 +80,14 @@ export class BlogController { @ApiResponse({ status: 200, description: 'Blog fetched successfully.', type: BlogDto }) @ApiResponse({ status: 404, description: 'Blog not found.' }) @ApiResponse({ status: 500, description: 'Internal server error.' }) - async getSingleBlog(@Param('id', new ParseUUIDPipe()) id: string, @Request() req): Promise { + async getSingleBlog( + @Param('id', new ParseUUIDPipe()) id: string, + @Request() req + ): Promise<{ + status_code: number; + message: string; + data: BlogDto; + }> { return await this.blogService.getSingleBlog(id, req.user); }