NEW API :

* /api2/wgEdit?id=<USER ID>&state=<ENABLED/DISABLED>
This commit is contained in:
infidel
2022-11-24 17:11:55 +07:00
parent 98cf19b7ab
commit 24cb941f94
22 changed files with 164 additions and 34 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-n(+d-xz5933rr363)v31jcdl^+#ab23&s317uxek+d*-_d6q99
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ["192.168.10.2", "127.0.0.1", "localhost"]
ALLOWED_HOSTS = ["192.168.10.2", "127.0.0.1", "localhost:8000", "localhost:5000"]
# Application definition

View File

@@ -25,5 +25,6 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include(router.urls)),
path('api2/wgLogs', views.wgViewLogs),
path('api2/wgClients', views.wgViewClients)
path('api2/wgClients', views.wgViewClients),
path('api2/wgEdit', views.wgEditClients)
]