aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserTestController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline/Controllers/UserTestController.cs')
-rw-r--r--Timeline/Controllers/UserTestController.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/Controllers/UserTestController.cs b/Timeline/Controllers/UserTestController.cs
index cf5cf074..f1edb0d5 100644
--- a/Timeline/Controllers/UserTestController.cs
+++ b/Timeline/Controllers/UserTestController.cs
@@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Mvc;
namespace Timeline.Controllers
{
- [Route("api/test/User")]
+ [Route("Test/User")]
public class UserTestController : Controller
{
[HttpGet("[action]")]
@@ -14,14 +14,14 @@ namespace Timeline.Controllers
}
[HttpGet("[action]")]
- [Authorize(Roles = "User,Admin")]
+ [Authorize(Roles = "user,admin")]
public ActionResult BothUserAndAdmin()
{
return Ok();
}
[HttpGet("[action]")]
- [Authorize(Roles = "Admin")]
+ [Authorize(Roles = "admin")]
public ActionResult OnlyAdmin()
{
return Ok();