Added login api
This commit is contained in:
Binary file not shown.
BIN
wg_api/utils/__pycache__/reqs_handler.cpython-310.pyc
Normal file
BIN
wg_api/utils/__pycache__/reqs_handler.cpython-310.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -26,4 +26,21 @@ def req_edit_state(id, state):
|
||||
|
||||
print(req)
|
||||
|
||||
|
||||
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)
|
||||
|
||||
print("-->")
|
||||
print(req)
|
||||
|
||||
# req = json.loads(req)
|
||||
|
||||
return req.json()
|
||||
|
||||
#
|
||||
# http://10.30.1.138:5000/api/client/caivc1vekn84im2m6ec0?_=1669623393468
|
||||
|
||||
Reference in New Issue
Block a user