using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using Flexitime.Objects; using FlexitimeAPI.Helpers; namespace FlexitimeAPI.Controllers { [Route("api/[controller]")] [ApiController] public class PolicyController : ControllerBase { [HttpGet] public List GetPolicies() { throw new NotImplementedException(); } [Authorize(Permissions=new []{"p.w"})] [HttpPost] public IActionResult UpdatePolicy(Policy newPolicy) { //get the authenticated user and populate the author property throw new NotImplementedException(); } } }