28 lines
717 B
C#
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();
|
|
}
|
|
}
|
|
}
|