aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers/Testing
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
commite4c4a284571d51dcda373a0a1c047e634b17882d (patch)
tree2343fba4753576fd33a79e2f2d4fe1484e11f557 /BackEnd/Timeline/Controllers/Testing
parentb81a66ff49f5d9305108e92a009449ee5994862e (diff)
downloadtimeline-e4c4a284571d51dcda373a0a1c047e634b17882d.tar.gz
timeline-e4c4a284571d51dcda373a0a1c047e634b17882d.tar.bz2
timeline-e4c4a284571d51dcda373a0a1c047e634b17882d.zip
...
Diffstat (limited to 'BackEnd/Timeline/Controllers/Testing')
-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();
- }
- }
-}