Fixed issue where Genre records were not being retrieved and added scope permissions for Genre and Year endpoints

This commit is contained in:
amazing-username
2019-06-16 15:17:39 +00:00
parent e1614adfad
commit 59d3d47df7
5 changed files with 16 additions and 9 deletions
+2
View File
@@ -34,6 +34,7 @@ namespace Icarus.Controller.V1
#region HTTP Routes
[HttpGet]
[Authorize("read:year")]
public IActionResult Get()
{
var yearValues = new List<Year>();
@@ -55,6 +56,7 @@ namespace Icarus.Controller.V1
}
[HttpGet("{id}")]
[Authorize("read:year")]
public IActionResult Get(int id)
{
var year = new Year