Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
Rollback!
  • Loading branch information
Sayad-Uddin-Tahsin authored Apr 30, 2024
1 parent 21a6a94 commit e1191af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ async def main():
logger.info(f"{ctime()}: [ENDPOINT] STATUS endpoint called - 200")

return (flask.request.headers, flask.Response(
json.dumps({"status": "OK", "documentation": f"https://{(flask.request.url).split('/')[2]}/documentation", "url formation": f"https://{(flask.request.url).split('/')[2]}/documentation#url-formation", "get in touch": f"https://{(flask.request.url).split('/')[2]}/documentation#get-in-touch", "repository": "https://github.com/Sayad-Uddin-Tahsin/BBC-News-API"}, ensure_ascii=False),
json.dumps({"status": "OK", "url formation": f"https://{(flask.request.url).split('/')[2]}/<type>?lang=<language>", "documentation": f"https://{(flask.request.url).split('/')[2]}/documentation", "get in touch": f"https://{(flask.request.url).split('/')[2]}/documentation#get-in-touch", "repository": "https://github.com/Sayad-Uddin-Tahsin/BBC-News-API"}, ensure_ascii=False),
mimetype="application/json; charset=utf-8",
status=200,
))
Expand Down

0 comments on commit e1191af

Please sign in to comment.