mirror of
https://github.com/bitwarden/server.git
synced 2025-05-21 03:24:31 -05: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;
|
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")]
|
[HttpGet("{hostname}/icon.png")]
|
||||||
public async Task<IActionResult> Get(string hostname)
|
public async Task<IActionResult> Get(string hostname)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user