From fe868e9e441f1f6b2802e03aac6a1850eda2cc9c Mon Sep 17 00:00:00 2001 From: seongha <11pi885@gmail.com> Date: Tue, 5 Nov 2024 14:32:03 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20ticle=20api=20=EB=AA=A9=EB=A1=9D=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/src/auth/auth.controller.ts | 2 +- apps/api/src/ticle/ticle.controller.ts | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/apps/api/src/auth/auth.controller.ts b/apps/api/src/auth/auth.controller.ts index 98776109..5ff7c3ae 100644 --- a/apps/api/src/auth/auth.controller.ts +++ b/apps/api/src/auth/auth.controller.ts @@ -4,7 +4,7 @@ import { Controller, Get, Patch, Post } from '@nestjs/common'; export class AuthController { constructor() {} - @Post('/signup') + @Post('signup') signup() {} @Post('login') diff --git a/apps/api/src/ticle/ticle.controller.ts b/apps/api/src/ticle/ticle.controller.ts index 898486a2..c3b6484f 100644 --- a/apps/api/src/ticle/ticle.controller.ts +++ b/apps/api/src/ticle/ticle.controller.ts @@ -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) {} +}