blob: 257c1d85eb8c82e6e1d1d6d97b82420373322a0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Timeline.Configs;
namespace Timeline.Controllers
{
[Route("api/[controller]")]
public class TodoPageController : Controller
{
private readonly IOptionsMonitor<TodoPageConfig> _config;
public TodoPageController(IOptionsMonitor<TodoPageConfig> config)
{
_config = config;
}
[HttpGet("[action]")]
[AllowAnonymous]
public ActionResult<AzureDevOpsAccessInfo> AzureDevOpsAccessInfo()
{
return Ok(_config.CurrentValue.AzureDevOpsAccessInfo);
}
}
}
|