mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Added toggle for client side app
This commit is contained in:
@@ -1342,6 +1342,14 @@ def API_OIDC_Status():
|
||||
'''
|
||||
Client Controller
|
||||
'''
|
||||
|
||||
@app.get(f'{APP_PREFIX}/api/clients/toggleStatus')
|
||||
def API_Clients_ToggleStatus():
|
||||
DashboardConfig.SetConfig("Clients", "enable",
|
||||
not DashboardConfig.GetConfig("Clients", "enable")[1])
|
||||
return ResponseObject(data=DashboardConfig.GetConfig("Clients", "enable")[1])
|
||||
|
||||
|
||||
@app.get(f'{APP_PREFIX}/api/clients/allClients')
|
||||
def API_Clients_AllClients():
|
||||
return ResponseObject(data=DashboardClients.GetAllClients())
|
||||
|
Reference in New Issue
Block a user