From 8708bb14faaae42068b5f76aeba85bc1a1a43b02 Mon Sep 17 00:00:00 2001 From: caljnj <51300377+caljnj@users.noreply.github.com> Date: Wed, 3 May 2023 15:36:59 +0200 Subject: [PATCH] remove hard to find duplicate route error --- Chapter07/accesstoken/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chapter07/accesstoken/server.py b/Chapter07/accesstoken/server.py index 4130eed..1794574 100644 --- a/Chapter07/accesstoken/server.py +++ b/Chapter07/accesstoken/server.py @@ -20,8 +20,8 @@ app.config.REFRESH_EXPIRATION = timedelta(hours=24) app.config.COOKIE_DOMAIN = "localhost" -app.static("/periodic", "./index-refresh-periodically.html") -app.static("/exception", "./index-refresh-on-exception.html") +app.static("/periodic", "./index-refresh-periodically.html", name="periodic") +app.static("/exception", "./index-refresh-on-exception.html", name="exception") @app.get("/")