Add authorization attribute to ConfigurationController for security
Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
This commit is contained in:
parent
eda9c17116
commit
760750de05
1 changed files with 2 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ShiftScheduler.Services;
|
||||
using ShiftScheduler.Shared;
|
||||
|
|
@ -7,6 +8,7 @@ namespace ShiftScheduler.Server.Controllers
|
|||
{
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
[Authorize(Policy = "AllowedEmails")]
|
||||
public class ConfigurationController : ControllerBase
|
||||
{
|
||||
private readonly IConfigurationService _configurationService;
|
||||
|
|
|
|||
Loading…
Reference in a new issue