refactor: remove authentication guard from label-print-agent controller
Build and Push Multi-Platform Images / build-and-push (push) Successful in 27s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 27s
This commit is contained in:
@@ -13,18 +13,15 @@ import {
|
|||||||
Res,
|
Res,
|
||||||
Sse,
|
Sse,
|
||||||
StreamableFile,
|
StreamableFile,
|
||||||
UseGuards,
|
|
||||||
} from '@nestjs/common';
|
} from '@nestjs/common';
|
||||||
import type { Response } from 'express';
|
import type { Response } from 'express';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
import { JwtOrApiKeyGuard } from '../auth/jwt-or-apikey.guard';
|
|
||||||
import { RequirePermissions } from '../auth/permissions.decorator';
|
import { RequirePermissions } from '../auth/permissions.decorator';
|
||||||
import { Permission } from '../auth/permissions.enum';
|
import { Permission } from '../auth/permissions.enum';
|
||||||
import { LabelPrintAgentService } from './label-print-agent.service';
|
import { LabelPrintAgentService } from './label-print-agent.service';
|
||||||
|
|
||||||
@Controller('api/label-print-agent')
|
@Controller('api/label-print-agent')
|
||||||
@UseGuards(JwtOrApiKeyGuard)
|
|
||||||
export class LabelPrintAgentController {
|
export class LabelPrintAgentController {
|
||||||
constructor(private readonly service: LabelPrintAgentService) {}
|
constructor(private readonly service: LabelPrintAgentService) {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user