summaryrefslogtreecommitdiffstats
path: root/server/src/Endpoints/Internal/Root/RefreshConfigurationRoute.cs
blob: 4b1beec735c9dc4fc76798990be7aaabac7f3c2c (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();
	}
}