Archived
1
0
Fork 0

add /api/ to URL

This commit is contained in:
Lukas Winkler 2017-06-09 13:28:28 +02:00
parent 3346f59c1b
commit d7209f7f7e

View file

@ -18,7 +18,7 @@ connection = pymysql.connect(host=config.host,
unix_socket='/var/run/mysqld/mysqld.sock')
@app.route('/venue/')
@app.route('/api/venue/')
def get_venues():
with connection.cursor() as cursor:
sql = "SELECT * FROM venues"
@ -30,7 +30,7 @@ def get_venues():
return jsonify(venues)
@app.route('/venue/<int:venueid>/')
@app.route('/api/venue/<int:venueid>/')
def get_meals(venueid):
with connection.cursor() as cursor:
print("GFGDGDG")