mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: add header swagger docs
This commit is contained in:
@@ -5,12 +5,11 @@ import {
|
||||
Delete,
|
||||
Param,
|
||||
Body,
|
||||
Res,
|
||||
Next,
|
||||
HttpStatus,
|
||||
ParseIntPipe,
|
||||
} from '@nestjs/common';
|
||||
import { Response, NextFunction } from 'express';
|
||||
import { NextFunction } from 'express';
|
||||
import { CreateRoleDto, EditRoleDto } from './dtos/Role.dto';
|
||||
import { RolesApplication } from './Roles.application';
|
||||
import {
|
||||
@@ -23,10 +22,12 @@ import {
|
||||
ApiExtraModels,
|
||||
} from '@nestjs/swagger';
|
||||
import { RoleResponseDto } from './dtos/RoleResponse.dto';
|
||||
import { ApiCommonHeaders } from '@/common/decorators/ApiCommonHeaders';
|
||||
|
||||
@ApiTags('Roles')
|
||||
@Controller('roles')
|
||||
@ApiExtraModels(RoleResponseDto)
|
||||
@ApiCommonHeaders()
|
||||
export class RolesController {
|
||||
constructor(private readonly rolesApp: RolesApplication) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user