refactor(core): Enforce authorization by default on all routes (no-changelog) (#8762)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-02-28 17:02:18 +01:00
committed by GitHub
parent 2811f77798
commit db4a419c8d
46 changed files with 126 additions and 299 deletions

View File

@@ -1,21 +1,11 @@
import { VariablesRequest } from '@/requests';
import {
Authorized,
Delete,
Get,
Licensed,
Patch,
Post,
GlobalScope,
RestController,
} from '@/decorators';
import { Delete, Get, Licensed, Patch, Post, GlobalScope, RestController } from '@/decorators';
import { VariablesService } from './variables.service.ee';
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
import { NotFoundError } from '@/errors/response-errors/not-found.error';
import { VariableValidationError } from '@/errors/variable-validation.error';
import { VariableCountLimitReachedError } from '@/errors/variable-count-limit-reached.error';
@Authorized()
@RestController('/variables')
export class VariablesController {
constructor(private readonly variablesService: VariablesService) {}