aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/TestController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-02-14 23:05:04 +0800
committercrupest <crupest@outlook.com>2019-02-14 23:05:04 +0800
commit3c140656ebe6ed34dda9356a01dbff205651e641 (patch)
tree8b8ca7331c9510b897042737a5cbbc0f77b1b736 /Timeline/Controllers/TestController.cs
parentde90f0413553a23f8ebba1343c6e96c63e0c9748 (diff)
downloadtimeline-3c140656ebe6ed34dda9356a01dbff205651e641.tar.gz
timeline-3c140656ebe6ed34dda9356a01dbff205651e641.tar.bz2
timeline-3c140656ebe6ed34dda9356a01dbff205651e641.zip
Develop user token interface.
Diffstat (limited to 'Timeline/Controllers/TestController.cs')
-rw-r--r--Timeline/Controllers/TestController.cs34
1 files changed, 0 insertions, 34 deletions
diff --git a/Timeline/Controllers/TestController.cs b/Timeline/Controllers/TestController.cs
deleted file mode 100644
index 1563830c..00000000
--- a/Timeline/Controllers/TestController.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
-
-namespace Timeline.Controllers
-{
- [Route("api/[controller]")]
- public class TestController : Controller
- {
- [HttpGet("[action]")]
- [Authorize]
- public string Action1()
- {
- return "test";
- }
-
- [HttpGet("[action]")]
- [Authorize(Roles = "User,Admin")]
- public string Action2()
- {
- return "test";
- }
-
- [HttpGet("[action]")]
- [Authorize(Roles = "Admin")]
- public string Action3()
- {
- return "test";
- }
- }
-}