From 3c140656ebe6ed34dda9356a01dbff205651e641 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 14 Feb 2019 23:05:04 +0800 Subject: Develop user token interface. --- Timeline/Controllers/TestController.cs | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 Timeline/Controllers/TestController.cs (limited to 'Timeline/Controllers/TestController.cs') 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"; - } - } -} -- cgit v1.2.3