diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-20 16:47:17 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-20 16:47:17 +0800 |
commit | 4c1a20746abc3354d67ffd7ef65e8639e70cd63a (patch) | |
tree | 504d77d6210fd0d0a251dcf232231d96a0990c54 /Timeline/Controllers/UserTestController.cs | |
parent | 9bc08731aad112f100bcbc105f2cca910948651f (diff) | |
download | timeline-4c1a20746abc3354d67ffd7ef65e8639e70cd63a.tar.gz timeline-4c1a20746abc3354d67ffd7ef65e8639e70cd63a.tar.bz2 timeline-4c1a20746abc3354d67ffd7ef65e8639e70cd63a.zip |
...
Diffstat (limited to 'Timeline/Controllers/UserTestController.cs')
-rw-r--r-- | Timeline/Controllers/UserTestController.cs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Timeline/Controllers/UserTestController.cs b/Timeline/Controllers/UserTestController.cs deleted file mode 100644 index 2a5f36a1..00000000 --- a/Timeline/Controllers/UserTestController.cs +++ /dev/null @@ -1,32 +0,0 @@ -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();
- }
- }
-}
|