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 | 2bcdc32c4c6d37a6d40aa4fdfc7b04478a76e961 (patch) | |
tree | da41fde0f5c7717f9e7665225015326bf99a0321 /Timeline/Controllers | |
parent | 133b90cdbafabab0640bfb3179899fb4f3df4dbe (diff) | |
download | timeline-2bcdc32c4c6d37a6d40aa4fdfc7b04478a76e961.tar.gz timeline-2bcdc32c4c6d37a6d40aa4fdfc7b04478a76e961.tar.bz2 timeline-2bcdc32c4c6d37a6d40aa4fdfc7b04478a76e961.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); } } } |