NEW API :
* /api2/wgEdit?id=<USER ID>&state=<ENABLED/DISABLED>
This commit is contained in:
BIN
wgweb/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
wgweb/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
wgweb/__pycache__/settings.cpython-311.pyc
Normal file
BIN
wgweb/__pycache__/settings.cpython-311.pyc
Normal file
Binary file not shown.
BIN
wgweb/__pycache__/urls.cpython-311.pyc
Normal file
BIN
wgweb/__pycache__/urls.cpython-311.pyc
Normal file
Binary file not shown.
BIN
wgweb/__pycache__/wsgi.cpython-311.pyc
Normal file
BIN
wgweb/__pycache__/wsgi.cpython-311.pyc
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user