fix: toggle now works — JSON response + immediate CSS flip

- /toggle-admin returns JSON {ok, adminMode} instead of redirect
- onclick: toggle CSS instantly, then fetch, then reload on ok
This commit is contained in:
2026-06-11 14:42:31 +04:00
parent f739754c3b
commit fa4d5646fa
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ipwhitelist",
"version": "0.5.47",
"version": "0.5.48",
"description": "IP WhiteList microservice for cloud provider",
"main": "server.js",
"scripts": {