aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserTestController.cs
diff options
context:
space:
mode:
authorunknown <crupest@outlook.com>2019-08-07 17:38:56 +0800
committerunknown <crupest@outlook.com>2019-08-07 17:38:56 +0800
commite283a3e745bad05a55c572646d7b20fbaaeb522d (patch)
treedf5d1325c3b73b17f4f86b71097775e9ce3fa122 /Timeline/Controllers/UserTestController.cs
parent5f5458518df0475fa36af754cae52eb31eb92fa3 (diff)
downloadtimeline-e283a3e745bad05a55c572646d7b20fbaaeb522d.tar.gz
timeline-e283a3e745bad05a55c572646d7b20fbaaeb522d.tar.bz2
timeline-e283a3e745bad05a55c572646d7b20fbaaeb522d.zip
Add script to convert encoding and eof. And of course run it.
Diffstat (limited to 'Timeline/Controllers/UserTestController.cs')
-rw-r--r--Timeline/Controllers/UserTestController.cs62
1 files changed, 31 insertions, 31 deletions
diff --git a/Timeline/Controllers/UserTestController.cs b/Timeline/Controllers/UserTestController.cs
index 21686b81..f65d9857 100644
--- a/Timeline/Controllers/UserTestController.cs
+++ b/Timeline/Controllers/UserTestController.cs
@@ -1,31 +1,31 @@
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
-using Timeline.Authenticate;
-
-namespace Timeline.Controllers
-{
- [Route("Test/User")]
- 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")]
+ 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();
+ }
+ }
+}