FlexitimeTracker/FlexitimeUI/FlexitimeAPI/Controllers/PolicyController.cs
2023-04-11 20:17:20 +01:00

28 lines
717 B
C#

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<Policy> 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();
}
}
}