aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-02-21 16:32:16 +0000
committer杨宇千 <crupest@outlook.com>2019-02-21 16:32:16 +0000
commit9ae2a899eb53b8ee31710a5533cdf21b0f14dafd (patch)
tree8f22c966d15d928a5587385f38b5284f0691b2de /Timeline/Controllers
parent35f8562f1f1db36a42c53ce42c39db3d615deb0f (diff)
parent504d770e51a07ca7765de725979412b6dacdcf15 (diff)
downloadtimeline-9ae2a899eb53b8ee31710a5533cdf21b0f14dafd.tar.gz
timeline-9ae2a899eb53b8ee31710a5533cdf21b0f14dafd.tar.bz2
timeline-9ae2a899eb53b8ee31710a5533cdf21b0f14dafd.zip
Merged PR 3: Add unit test for front side.
Related work items: #1
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);
}
}
}