add endpoint for penal charge
This commit is contained in:
@@ -15,7 +15,7 @@ def health():
|
||||
|
||||
@auth_bp.route("/login", methods=["POST"])
|
||||
def login():
|
||||
data = request.json
|
||||
data = request.get_json()
|
||||
api_url = f"{BASE_URL}/login"
|
||||
|
||||
response = requests.post(api_url, json=data)
|
||||
@@ -26,7 +26,7 @@ def login():
|
||||
|
||||
@auth_bp.route("/status-call", methods=["POST"])
|
||||
def status_call():
|
||||
data = request.json
|
||||
data = request.get_json()
|
||||
api_url = f"{BASE_URL}/StatusCall"
|
||||
|
||||
# response = requests.post(api_url, json=data, headers=get_headers())
|
||||
@@ -49,7 +49,7 @@ def status_call():
|
||||
|
||||
@auth_bp.route("/sms", methods=["POST"])
|
||||
def sms():
|
||||
data = request.json
|
||||
data = request.get_json()
|
||||
api_url = f"{BASE_URL}/SMS"
|
||||
|
||||
# response = requests.post(api_url, json=data, headers=get_headers())
|
||||
@@ -66,7 +66,7 @@ def sms():
|
||||
|
||||
@auth_bp.route("/bulk-sms", methods=["POST"])
|
||||
def bulk_sms():
|
||||
data = request.json
|
||||
data = request.get_json()
|
||||
api_url = f"{BASE_URL}/BulkSMS"
|
||||
|
||||
# response = requests.post(api_url, json=data, headers=get_headers())
|
||||
|
||||
Reference in New Issue
Block a user