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,9 +1,8 @@
import { Authorized, Post, RestController, GlobalScope } from '@/decorators';
import { Post, RestController, GlobalScope } from '@/decorators';
import { OrchestrationRequest } from '@/requests';
import { OrchestrationService } from '@/services/orchestration.service';
import { License } from '@/License';
@Authorized()
@RestController('/orchestration')
export class OrchestrationController {
constructor(
@@ -12,7 +11,7 @@ export class OrchestrationController {
) {}
/**
* These endpoints do not return anything, they just trigger the messsage to
* These endpoints do not return anything, they just trigger the message to
* the workers to respond on Redis with their status.
*/
@GlobalScope('orchestration:read')