From 3f1cff680951ae0b5b2fbe57427f99b370559f35 Mon Sep 17 00:00:00 2001 From: Dan Shanahan Date: Fri, 20 Oct 2023 09:39:13 -0700 Subject: [PATCH] Update routes.py --- server/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)