diff options
author | crupest <crupest@outlook.com> | 2019-02-20 18:23:05 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-02-20 18:23:05 +0800 |
commit | 0ed96f534f75ebc2a7bdbec031a4674368d0420a (patch) | |
tree | fbc0862d757f2743b84c0abf93ccfb1e2c77ab22 /Timeline/Controllers | |
parent | 5afa4248c5ec67d361a8f75e0ec0f1d12778e266 (diff) | |
download | timeline-0ed96f534f75ebc2a7bdbec031a4674368d0420a.tar.gz timeline-0ed96f534f75ebc2a7bdbec031a4674368d0420a.tar.bz2 timeline-0ed96f534f75ebc2a7bdbec031a4674368d0420a.zip |
Move some config of todo page to server side.
Diffstat (limited to 'Timeline/Controllers')
-rw-r--r-- | Timeline/Controllers/TodoListController.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Timeline/Controllers/TodoListController.cs b/Timeline/Controllers/TodoListController.cs index b773ed2e..257c1d85 100644 --- a/Timeline/Controllers/TodoListController.cs +++ b/Timeline/Controllers/TodoListController.cs @@ -10,21 +10,20 @@ using Timeline.Configs; namespace Timeline.Controllers { [Route("api/[controller]")] - public class TodoListController : Controller + public class TodoPageController : Controller { - private readonly IOptionsMonitor<TodoListConfig> _config; + private readonly IOptionsMonitor<TodoPageConfig> _config; - public TodoListController(IOptionsMonitor<TodoListConfig> config) + public TodoPageController(IOptionsMonitor<TodoPageConfig> config) { _config = config; } [HttpGet("[action]")] [AllowAnonymous] - [Produces("text/plain")] - public ActionResult<string> AzureDevOpsPat() + public ActionResult<AzureDevOpsAccessInfo> AzureDevOpsAccessInfo() { - return Ok(_config.CurrentValue.AzureDevOpsPat); + return Ok(_config.CurrentValue.AzureDevOpsAccessInfo); } } } |