We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d6918e commit 6c63987Copy full SHA for 6c63987
backend/src/entities/event/event.controller.ts
@@ -1,4 +1,4 @@
1
-import { OnlyAdmin, Public } from "@/auth/auth.guard";
+import { OnlyAdmin } from "@/auth/auth.guard";
2
import { NewEventResponseDTO } from "@/DTOs/new-event-response.dto";
3
import { NewEventDTO } from "@/DTOs/new-event.dto";
4
import { NewTestEventDTO } from "@/DTOs/new-test-event.dto";
@@ -29,8 +29,7 @@ export class EventController {
29
constructor(private readonly eventService: EventService) {}
30
31
@Post("admin/new-event")
32
- // TODO @OnlyAdmin()
33
- @Public()
+ @OnlyAdmin()
34
@ApiExcludeEndpoint()
35
@ApiOperation({ summary: "Send event notifications" })
36
@ApiBody({
0 commit comments