mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
endpoint to display config settings (#1150)
This commit is contained in:
parent
1ca6e917af
commit
78606d5f13
@ -46,6 +46,17 @@ namespace Bit.Icons.Controllers
|
||||
return DateTime.UtcNow;
|
||||
}
|
||||
|
||||
[HttpGet("~/config")]
|
||||
public IActionResult GetConfig()
|
||||
{
|
||||
return new JsonResult(new
|
||||
{
|
||||
CacheEnabled = _iconsSettings.CacheEnabled,
|
||||
CacheHours = _iconsSettings.CacheHours,
|
||||
CacheSizeLimit = _iconsSettings.CacheSizeLimit
|
||||
});
|
||||
}
|
||||
|
||||
[HttpGet("{hostname}/icon.png")]
|
||||
public async Task<IActionResult> Get(string hostname)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user