aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/src/Endpoints/Internal/Root/RefreshConfigurationRoute.cs
blob: a616c009ad8448be59ad81e7110cff630141f665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace IOL.GreatOffice.Api.Endpoints.Internal.Root;

public class RefreshConfigurationRoute : RouteBaseSync.WithoutRequest.WithoutResult
{
    private readonly VaultService _vaultService;

    public RefreshConfigurationRoute(VaultService vaultService) {
        _vaultService = vaultService;
    }

    [HttpGet("~/_/refresh-configuration")]
    public override void Handle() {
        _vaultService.RefreshCurrentAppConfiguration();
    }
}