fix moved endpoint
the login endpoint moved from /login to /api/login
This commit is contained in:
@@ -46,7 +46,7 @@ class DataScraper():
|
|||||||
"""
|
"""
|
||||||
json_obj:dict = {"username":username,"password":password}
|
json_obj:dict = {"username":username,"password":password}
|
||||||
|
|
||||||
response = requests.post(f"{self.base_url}/login",json=json_obj)
|
response = requests.post(f"{self.base_url}/api/login",json=json_obj)
|
||||||
|
|
||||||
if(not response.ok):
|
if(not response.ok):
|
||||||
print(f"response:{response}")
|
print(f"response:{response}")
|
||||||
|
|||||||
Reference in New Issue
Block a user