Skip to content

Commit

Permalink
feat: ticle api 목록 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
Fixtar committed Nov 5, 2024
1 parent 7ec6b54 commit fe868e9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Controller, Get, Patch, Post } from '@nestjs/common';
export class AuthController {
constructor() {}

@Post('/signup')
@Post('signup')
signup() {}

@Post('login')
Expand Down
19 changes: 17 additions & 2 deletions apps/api/src/ticle/ticle.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
import { Controller } from '@nestjs/common';
import { Controller, Get, Param, Post, Query } from '@nestjs/common';

@Controller('ticle')
export class TicleController {}
export class TicleController {
@Post('')
createTicle() {}

@Get(':ticleId')
getTicle(@Param('ticleId') params: any) {}

@Get('list')
getTicleList(@Query('filter') filter?: string, @Query('sort') sort?: string) {}

@Get('search')
getSearchList() {}

@Get(':ticleId/apply')
applyTicle(@Param('ticleId') params: any) {}
}

0 comments on commit fe868e9

Please sign in to comment.