Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 4x 4x 4x 4x 4x 4x 12x 4x 1x | import { Controller, Get, HttpStatus } from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { ApiArraySuccessResponse } from 'src/commons/decorators/api-array-success-response.decorator';
import { ApiThemeGetListResponseDto } from 'src/theme/dto/api-theme-get-list-response.dto';
import { ThemeService } from 'src/theme/theme.service';
@ApiTags('테마')
@Controller('/api/theme')
export class ThemeController {
constructor(private readonly themeService: ThemeService) {}
@Get('')
@ApiOperation({
summary: '테마 리스트',
description: '테마 리스트',
})
@ApiArraySuccessResponse(ApiThemeGetListResponseDto, {
description: '테마 리스트 조회 성공',
status: HttpStatus.OK,
})
async themeList(): Promise<{ items: ApiThemeGetListResponseDto[] }> {
return this.themeService.themeList();
}
}
|