From cf713bd0f32f3a3f1864d305db9b62be33ced403 Mon Sep 17 00:00:00 2001 From: Darkstack <1835601+darkstack@users.noreply.github.com> Date: Sun, 31 Jul 2022 02:19:28 +0200 Subject: [PATCH] Authorize --- LaDOSE.Src/LaDOSE.Api/Controllers/BotEventController.cs | 3 +-- LaDOSE.Src/LaDOSE.Api/Controllers/EventController.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/LaDOSE.Src/LaDOSE.Api/Controllers/BotEventController.cs b/LaDOSE.Src/LaDOSE.Api/Controllers/BotEventController.cs index 926fa47..66106cd 100644 --- a/LaDOSE.Src/LaDOSE.Api/Controllers/BotEventController.cs +++ b/LaDOSE.Src/LaDOSE.Api/Controllers/BotEventController.cs @@ -14,8 +14,7 @@ using Microsoft.AspNetCore.Mvc; namespace LaDOSE.Api.Controllers { - [AllowAnonymous] - //[Authorize] + [Authorize] [Produces("application/json")] [Route("api/[controller]")] public class BotEventController : GenericControllerDTO diff --git a/LaDOSE.Src/LaDOSE.Api/Controllers/EventController.cs b/LaDOSE.Src/LaDOSE.Api/Controllers/EventController.cs index 3207fca..835eae1 100644 --- a/LaDOSE.Src/LaDOSE.Api/Controllers/EventController.cs +++ b/LaDOSE.Src/LaDOSE.Api/Controllers/EventController.cs @@ -14,7 +14,7 @@ using Microsoft.AspNetCore.Mvc; namespace LaDOSE.Api.Controllers { - //[Authorize] + [Authorize] [Produces("application/json")] [Route("api/[controller]")] public class EventController : GenericControllerDTO