aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-02-20 18:23:05 +0800
committercrupest <crupest@outlook.com>2019-02-20 18:23:05 +0800
commit2bcdc32c4c6d37a6d40aa4fdfc7b04478a76e961 (patch)
treeda41fde0f5c7717f9e7665225015326bf99a0321 /Timeline/Controllers
parent133b90cdbafabab0640bfb3179899fb4f3df4dbe (diff)
downloadtimeline-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.cs11
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);
}
}
}