src/tag/tag.controller.ts
tags
Methods |
|
Async findAll |
findAll()
|
Decorators :
@Get()
|
Defined in src/tag/tag.controller.ts:19
|
Returns :
Promise<TagEntity[]>
|
import {Get, Controller } from '@nestjs/common';
import { TagEntity } from './tag.entity';
import { TagService } from './tag.service';
import {
ApiUseTags,
ApiBearerAuth,
} from '@nestjs/swagger';
@ApiBearerAuth()
@ApiUseTags('tags')
@Controller('tags')
export class TagController {
constructor(private readonly tagService: TagService) {}
@Get()
async findAll(): Promise<TagEntity[]> {
return await this.tagService.findAll();
}
}