Skip to content

Commit 902cab0

Browse files
Update main.py
1 parent a422f01 commit 902cab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def ctime():
9292
<h1>BBC News API</h1>
9393
9494
<a id="urlFormation" style="font-size:20px">
95-
URL Formation: <span style="font-size:18px"><code>{type}?lang={language}</code></span>
95+
URL Formation: <span style="font-size:18px"><code>/{type}?lang={language}</code></span>
9696
</a>
9797
<br>
9898
<br>
@@ -147,7 +147,7 @@ def main():
147147
logger.info(f"{ctime()}: [ENDPOINT] STATUS endpoint called - 200")
148148

149149
return flask.Response(
150-
json.dumps({"status": "OK", "repository": "https://github.com/Sayad-Uddin-Tahsin/BBC-News-API"}, ensure_ascii=False),
150+
json.dumps({"status": "OK", "documentation": f"https://{(flask.request.url).split('/')[2]}/doc", "repository": "https://github.com/Sayad-Uddin-Tahsin/BBC-News-API"}, ensure_ascii=False),
151151
mimetype="application/json; charset=utf-8",
152152
status=200,
153153
)

0 commit comments

Comments
 (0)