HM-110. Научили свагер работать с авторизацией
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
import {Controller, Get, Header, Delete, Options, HttpCode, Req} from '@nestjs/common';
|
||||
import {ApiTags, ApiResponse} from '@nestjs/swagger';
|
||||
import {ApiTags, ApiResponse, ApiSecurity} from '@nestjs/swagger';
|
||||
import {LogsService} from './logs.service';
|
||||
import {ALLOW_ORIGIN_ALL, COLLECTION_LOGS, LOG_TYPE, ALLOW_METHOD, ALLOW_CREDENTIALS, CONTENT_LENGTH, ALLOW_HEADERS} from 'src/consts';
|
||||
import {ClienLogResponse, ServerLogResponse} from './logs.schema';
|
||||
import {AuthService} from 'src/services/auth.service';
|
||||
import {Request} from 'express';
|
||||
|
||||
@ApiSecurity('apiKey')
|
||||
@Controller(COLLECTION_LOGS)
|
||||
@ApiTags(COLLECTION_LOGS)
|
||||
export class LogsController {
|
||||
|
||||
Reference in New Issue
Block a user