From 06117361065441754327206b91d7230a65ea3e06 Mon Sep 17 00:00:00 2001 From: SvyatoslavArtymovych Date: Wed, 26 Apr 2023 14:32:15 +0300 Subject: [PATCH] hotfix: access to book.my_books --- app/views/book.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/book.py b/app/views/book.py index 72aa75e..7892269 100644 --- a/app/views/book.py +++ b/app/views/book.py @@ -34,6 +34,7 @@ def get_all(): @bp.route("/", methods=["GET"]) +@login_required def my_books(): q = request.args.get("q", type=str, default=None) books: m.Book = m.Book.query.order_by(m.Book.id)