mirror of
https://github.com/balkian/eestec.codeit.git
synced 2025-09-02 17:02:20 +00:00
Test of json returns
This commit is contained in:
5
app.py
5
app.py
@@ -28,6 +28,11 @@ app = Flask(__name__)
|
|||||||
def hello():
|
def hello():
|
||||||
return 'Hello World!'
|
return 'Hello World!'
|
||||||
|
|
||||||
|
@app.route('/stats')
|
||||||
|
def stats():
|
||||||
|
stats = db.stats.findOne()
|
||||||
|
return stats
|
||||||
|
|
||||||
def update_db():
|
def update_db():
|
||||||
store.load_all('lcs.json')
|
store.load_all('lcs.json')
|
||||||
stats=store.get_stats()
|
stats=store.get_stats()
|
||||||
|
Reference in New Issue
Block a user