aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserTestController.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-08 16:54:03 +0800
committer杨宇千 <crupest@outlook.com>2019-08-08 16:54:03 +0800
commited85aa28b49789aa413a7e10637368c812411640 (patch)
treeda11e395a3fd1340187fb785fc17e570171b942b /Timeline/Controllers/UserTestController.cs
parent57151c879376374425adb04fb68dad2cf7930df8 (diff)
parent29bd71cd93b03248254f341aff9252374abc74ec (diff)
downloadtimeline-ed85aa28b49789aa413a7e10637368c812411640.tar.gz
timeline-ed85aa28b49789aa413a7e10637368c812411640.tar.bz2
timeline-ed85aa28b49789aa413a7e10637368c812411640.zip
Merge branch 'master' into null-request-field
Diffstat (limited to 'Timeline/Controllers/UserTestController.cs')
-rw-r--r--Timeline/Controllers/UserTestController.cs64
1 files changed, 32 insertions, 32 deletions
diff --git a/Timeline/Controllers/UserTestController.cs b/Timeline/Controllers/UserTestController.cs
index a81f42a8..2a5f36a1 100644
--- a/Timeline/Controllers/UserTestController.cs
+++ b/Timeline/Controllers/UserTestController.cs
@@ -1,32 +1,32 @@
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
-using Timeline.Authenticate;
-
-namespace Timeline.Controllers
-{
- [Route("Test/User")]
- [ApiController]
- public class UserTestController : Controller
- {
- [HttpGet("[action]")]
- [Authorize]
- public ActionResult Authorize()
- {
- return Ok();
- }
-
- [HttpGet("[action]")]
- [UserAuthorize]
- public new ActionResult User()
- {
- return Ok();
- }
-
- [HttpGet("[action]")]
- [AdminAuthorize]
- public ActionResult Admin()
- {
- return Ok();
- }
- }
-}
+using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Mvc;
+using Timeline.Authenticate;
+
+namespace Timeline.Controllers
+{
+ [Route("Test/User")]
+ [ApiController]
+ public class UserTestController : Controller
+ {
+ [HttpGet("[action]")]
+ [Authorize]
+ public ActionResult Authorize()
+ {
+ return Ok();
+ }
+
+ [HttpGet("[action]")]
+ [UserAuthorize]
+ public new ActionResult User()
+ {
+ return Ok();
+ }
+
+ [HttpGet("[action]")]
+ [AdminAuthorize]
+ public ActionResult Admin()
+ {
+ return Ok();
+ }
+ }
+}