Added full support for the app-prefix parameter

This commit is contained in:
leviofanh
2025-12-18 02:38:05 +01:00
parent d51c543346
commit 9e9f07408d
8 changed files with 35 additions and 15 deletions

View File

@@ -194,7 +194,8 @@ def createClientBlueprint(wireguardConfigurations: dict[WireguardConfiguration],
@client.get(prefix)
def ClientIndex():
return render_template('client.html')
app_prefix = dashboardConfig.GetConfig("Server", "app_prefix")[1]
return render_template('client.html', APP_PREFIX=app_prefix)
@client.get(f'{prefix}/api/serverInformation')
def ClientAPI_ServerInformation():