Reconstruct Client App UI

This commit is contained in:
Donald Zou
2025-06-26 17:56:55 +08:00
parent e69e7ff3c1
commit 79ad3c0a84
8 changed files with 88 additions and 38 deletions

View File

@@ -1,3 +1,5 @@
from tzlocal import get_localzone
from functools import wraps
from flask import Blueprint, render_template, abort, request, Flask, current_app, session
@@ -91,6 +93,12 @@ def createClientBlueprint(wireguardConfigurations: dict[WireguardConfiguration],
def ClientIndex():
return render_template('client.html')
@client.get(f'{prefix}/api/serverInformation')
def ClientAPI_ServerInformation():
return ResponseObject(data={
"ServerTimezone": str(get_localzone())
})
@client.get(f'{prefix}/api/validateAuthentication')
@login_required
def ClientAPI_ValidateAuthentication():