fix: 컨트롤러 권한(Authorization) 설정 오류 수정 (#258) #259
|
|
@ -10,7 +10,7 @@ namespace SPMS.API.Controllers;
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Route("v1/in/account")]
|
[Route("v1/in/account")]
|
||||||
[ApiExplorerSettings(GroupName = "account")]
|
[ApiExplorerSettings(GroupName = "account")]
|
||||||
[Authorize(Roles = "Super")]
|
[Authorize]
|
||||||
public class AccountController : ControllerBase
|
public class AccountController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly IAccountService _accountService;
|
private readonly IAccountService _accountService;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Swashbuckle.AspNetCore.Annotations;
|
using Swashbuckle.AspNetCore.Annotations;
|
||||||
using SPMS.Application.DTOs.Message;
|
using SPMS.Application.DTOs.Message;
|
||||||
|
|
@ -10,6 +11,7 @@ namespace SPMS.API.Controllers;
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Route("v1/in/message")]
|
[Route("v1/in/message")]
|
||||||
[ApiExplorerSettings(GroupName = "message")]
|
[ApiExplorerSettings(GroupName = "message")]
|
||||||
|
[Authorize]
|
||||||
public class MessageController : ControllerBase
|
public class MessageController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly IMessageValidationService _validationService;
|
private readonly IMessageValidationService _validationService;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Swashbuckle.AspNetCore.Annotations;
|
using Swashbuckle.AspNetCore.Annotations;
|
||||||
using SPMS.Application.DTOs.Push;
|
using SPMS.Application.DTOs.Push;
|
||||||
|
|
@ -9,6 +10,7 @@ namespace SPMS.API.Controllers;
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Route("v1/in/push")]
|
[Route("v1/in/push")]
|
||||||
[ApiExplorerSettings(GroupName = "push")]
|
[ApiExplorerSettings(GroupName = "push")]
|
||||||
|
[Authorize]
|
||||||
public class PushController : ControllerBase
|
public class PushController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly IPushService _pushService;
|
private readonly IPushService _pushService;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ namespace SPMS.API.Controllers;
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Route("v1/in/service")]
|
[Route("v1/in/service")]
|
||||||
[ApiExplorerSettings(GroupName = "service")]
|
[ApiExplorerSettings(GroupName = "service")]
|
||||||
[Authorize(Roles = "Super")]
|
[Authorize]
|
||||||
public class ServiceController : ControllerBase
|
public class ServiceController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly IServiceManagementService _serviceManagementService;
|
private readonly IServiceManagementService _serviceManagementService;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Swashbuckle.AspNetCore.Annotations;
|
using Swashbuckle.AspNetCore.Annotations;
|
||||||
using SPMS.Application.DTOs.Stats;
|
using SPMS.Application.DTOs.Stats;
|
||||||
|
|
@ -9,6 +10,7 @@ namespace SPMS.API.Controllers;
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Route("v1/in/stats")]
|
[Route("v1/in/stats")]
|
||||||
[ApiExplorerSettings(GroupName = "stats")]
|
[ApiExplorerSettings(GroupName = "stats")]
|
||||||
|
[Authorize]
|
||||||
public class StatsController : ControllerBase
|
public class StatsController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly IStatsService _statsService;
|
private readonly IStatsService _statsService;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user