Skip to content

Commit

Permalink
Merge pull request #14 from erik1110/feature/api
Browse files Browse the repository at this point in the history
[disable] remove replicated api
  • Loading branch information
erik1110 committed Jan 17, 2024
2 parents 4b0d660 + 792a2b9 commit 698d137
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
11 changes: 0 additions & 11 deletions src/features/culinary/culinary.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,6 @@ export class CulinaryAdminController {
return await this.culinaryService.getallCulinary(req);
}

@Get(':id')
@Roles('admin')
@HttpCode(HttpStatus.OK)
@ApiOperation({ summary: '取得單筆美味佳餚 Get one delicious dish' })
@ApiOkResponse({ type: GetOneCulinarySuccessDto })
async getOneCulinary(
@Param('id', IsObjectIdPipe) id: string,
@Req() req: Request) {
return await this.culinaryService.getOneCulinary(id, req);
}

@Post('')
@Roles('admin')
@HttpCode(HttpStatus.OK)
Expand Down
11 changes: 0 additions & 11 deletions src/features/news/news.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,6 @@ export class NewsAdminController {
return await this.newsService.getallNews(req);
}

@Get(':id')
@Roles('admin')
@HttpCode(HttpStatus.OK)
@ApiOperation({ summary: '取得單筆最新消息 Get one latest news' })
@ApiOkResponse({ type: GetOneNewsSuccessDto })
async getOneNews(
@Param('id', IsObjectIdPipe) id: string,
@Req() req: Request) {
return await this.newsService.getOneNews(id, req);
}

@Post('')
@Roles('admin')
@HttpCode(HttpStatus.OK)
Expand Down
11 changes: 0 additions & 11 deletions src/features/room/room.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,6 @@ export class RoomAdminController {
return await this.roomService.getallRooms(req);
}

@Get(':id')
@Roles('admin')
@HttpCode(HttpStatus.OK)
@ApiOperation({ summary: '取得單一房型 Get a room' })
@ApiOkResponse({ type: GetOneRoomSuccessDto })
async getRoomById(
@Param('id', IsObjectIdPipe) id: string,
@Req() req: Request) {
return await this.roomService.getRoomById(id, req);
}

@Post('')
@Roles('admin')
@HttpCode(HttpStatus.OK)
Expand Down

0 comments on commit 698d137

Please sign in to comment.