aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-12 21:38:43 +0800
committercrupest <crupest@outlook.com>2020-11-12 21:38:43 +0800
commitee1b2b5b100268aa510257a1a2cd4cd03f9fc72b (patch)
tree221a2af5008e180e180f5400f127a0d404ed5158 /BackEnd/Timeline/Controllers
parent2c6b812382e04956793d90ba4148dd4aa7da3b70 (diff)
downloadtimeline-ee1b2b5b100268aa510257a1a2cd4cd03f9fc72b.tar.gz
timeline-ee1b2b5b100268aa510257a1a2cd4cd03f9fc72b.tar.bz2
timeline-ee1b2b5b100268aa510257a1a2cd4cd03f9fc72b.zip
...
Diffstat (limited to 'BackEnd/Timeline/Controllers')
-rw-r--r--BackEnd/Timeline/Controllers/Testing/TestingAuthController.cs32
1 files changed, 0 insertions, 32 deletions
diff --git a/BackEnd/Timeline/Controllers/Testing/TestingAuthController.cs b/BackEnd/Timeline/Controllers/Testing/TestingAuthController.cs
deleted file mode 100644
index 4d3b3ec7..00000000
--- a/BackEnd/Timeline/Controllers/Testing/TestingAuthController.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
-using Timeline.Auth;
-
-namespace Timeline.Controllers.Testing
-{
- [Route("testing/auth")]
- [ApiController]
- public class TestingAuthController : 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();
- }
- }
-}