Authorize

This commit is contained in:
2022-07-31 02:19:28 +02:00
parent f1d7236c72
commit cf713bd0f3
2 changed files with 2 additions and 3 deletions

View File

@@ -14,8 +14,7 @@ using Microsoft.AspNetCore.Mvc;
namespace LaDOSE.Api.Controllers namespace LaDOSE.Api.Controllers
{ {
[AllowAnonymous] [Authorize]
//[Authorize]
[Produces("application/json")] [Produces("application/json")]
[Route("api/[controller]")] [Route("api/[controller]")]
public class BotEventController : GenericControllerDTO<IBotEventService, BotEvent, BotEventDTO> public class BotEventController : GenericControllerDTO<IBotEventService, BotEvent, BotEventDTO>

View File

@@ -14,7 +14,7 @@ using Microsoft.AspNetCore.Mvc;
namespace LaDOSE.Api.Controllers namespace LaDOSE.Api.Controllers
{ {
//[Authorize] [Authorize]
[Produces("application/json")] [Produces("application/json")]
[Route("api/[controller]")] [Route("api/[controller]")]
public class EventController : GenericControllerDTO<IEventService, Event, EventDTO> public class EventController : GenericControllerDTO<IEventService, Event, EventDTO>