diff --git a/server/routes.py b/server/routes.py index d6087dc..af29390 100644 --- a/server/routes.py +++ b/server/routes.py @@ -4,7 +4,7 @@ from server.webapp import flaskapp, cursor from server.models import Book - +# This is where the API is @flaskapp.route('/') def index(): name = request.args.get('name') @@ -27,4 +27,4 @@ def index(): cursor.execute("SELECT name, author, read FROM books") books = [Book(*row) for row in cursor] - return render_template('books.html', books=books) \ No newline at end of file + return render_template('books.html', books=books)