aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserTestController.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-04-13 15:47:40 +0800
committerGitHub <noreply@github.com>2019-04-13 15:47:40 +0800
commit825778f4058d107186be66af05b1f8d16cd1e32c (patch)
tree1aa37565aad734b604eb94ed3a62db2308f4b30d /Timeline/Controllers/UserTestController.cs
parent8c5e7069d2651fb6fae641dfe482d7a0910b3fd1 (diff)
parentc2b9b32ada535bb09ee06ab0dfc0a3405e12485a (diff)
downloadtimeline-825778f4058d107186be66af05b1f8d16cd1e32c.tar.gz
timeline-825778f4058d107186be66af05b1f8d16cd1e32c.tar.bz2
timeline-825778f4058d107186be66af05b1f8d16cd1e32c.zip
Merge pull request #20 from crupest/separate
Separate front end and back end.
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();