We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a476f commit d953967Copy full SHA for d953967
README.md
@@ -1,6 +1,6 @@
1
# coronavirus-tracker (API)
2
3
-> This is a basic API for tracking development of the new coronavirus (2019-nCoV). It's written in python using 🍼 Flask.
+> This is a fast (< 200ms) and basic API for tracking development of the new coronavirus (2019-nCoV). It's written in python using 🍼 Flask.
4
5
## Live version
6
View the live version here: [https://coronavirus-tracker-api.herokuapp.com/latest](https://coronavirus-tracker-api.herokuapp.com/latest).
app/routes/all.py
@@ -0,0 +1,7 @@
+from flask import jsonify
+from app import app
+from app.data import get_data
+
+@app.route('/deaths')
+def deaths():
7
+ return jsonify(get_data('deaths'))
0 commit comments