mirror of
https://github.com/bitwarden/server.git
synced 2026-02-08 18:03:11 +08:00
24 lines
491 B
C#
24 lines
491 B
C#
|
|
using Bit.Api.Models.Response;
|
|||
|
|
using Bit.Core.Settings;
|
|||
|
|
|
|||
|
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
|
|
|||
|
|
namespace Bit.Api.Controllers;
|
|||
|
|
|
|||
|
|
[Route("config")]
|
|||
|
|
public class ConfigController : Controller
|
|||
|
|
{
|
|||
|
|
private readonly IGlobalSettings _globalSettings;
|
|||
|
|
|
|||
|
|
public ConfigController(IGlobalSettings globalSettings)
|
|||
|
|
{
|
|||
|
|
_globalSettings = globalSettings;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[HttpGet("")]
|
|||
|
|
public ConfigResponseModel GetConfigs()
|
|||
|
|
{
|
|||
|
|
return new ConfigResponseModel(_globalSettings);
|
|||
|
|
}
|
|||
|
|
}
|