add url and view handler for sysconfig apply, <TESTED - WORKS>
This commit is contained in:
@@ -28,9 +28,7 @@ def req_edit_state(id, state):
|
||||
|
||||
def req_edit_user(id):
|
||||
inf_s = get_session()
|
||||
|
||||
req_val = id
|
||||
|
||||
req_url = 'http://10.30.1.138:5000/api/client/'+req_val
|
||||
|
||||
req = inf_s.get(req_url)
|
||||
@@ -42,5 +40,17 @@ def req_edit_user(id):
|
||||
|
||||
return req.json()
|
||||
|
||||
def req_apply_sys():
|
||||
inf_s = get_session()
|
||||
# http://10.30.1.138:5000/api/apply-wg-config?_=1669872830286
|
||||
req_url = 'http://10.30.1.138:5000/api/apply-wg-config'
|
||||
|
||||
req = inf_s.get(req_url)
|
||||
|
||||
print("-->")
|
||||
print(req)
|
||||
|
||||
return req
|
||||
|
||||
#
|
||||
# http://10.30.1.138:5000/api/client/caivc1vekn84im2m6ec0?_=1669623393468
|
||||
|
||||
Reference in New Issue
Block a user