Skip to content

Commit

Permalink
Merge pull request #1298 from Amaryllis750/feat/blog-creation-for-all…
Browse files Browse the repository at this point in the history
…-users

Feat/blog creation for all users
  • Loading branch information
incredible-phoenix246 authored Feb 28, 2025
2 parents f4342e7 + 280be91 commit 010a3c0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,11 @@ dist
# User specific ignores
todo.txt
.vscode/

# Docker compose
docker-compose.yml
data/
<<<<<<< HEAD
data/
docker-compose.yml
package-lock.json
Expand All @@ -415,3 +420,20 @@ data/
.dev.env


=======

# Docker compose
docker-compose.yml
data/
>>>>>>> d080450 (chore: created a docker-compose.yml file and updated the gitignore)

data/
docker-compose.yml
package-lock.json
.dev.env


package-lock.json
docker-compose.yml
data/
.dev.env
3 changes: 2 additions & 1 deletion src/modules/blogs/blogs.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
import { ApiBearerAuth, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { BlogService } from './blogs.service';
import { SuperAdminGuard } from '@guards/super-admin.guard';
import { AuthGuard } from '@guards/auth.guard';
import { BlogResponseDto } from './dtos/blog-response.dto';
import { CreateBlogDto } from './dtos/create-blog.dto';
import { UpdateBlogResponseDto } from './dtos/update-blog-response.dto';
Expand All @@ -30,7 +31,7 @@ export class BlogController {

@ApiBearerAuth()
@Post()
@UseGuards(SuperAdminGuard)
@UseGuards(AuthGuard)
@ApiOperation({ summary: 'Create a new blog' })
@ApiResponse({ status: 201, description: 'The blog has been successfully created.', type: BlogResponseDto })
@ApiResponse({ status: 403, description: 'Forbidden.' })
Expand Down

0 comments on commit 010a3c0

Please sign in to comment.