From 8ddc4d5a7c86e0a7abe6e6a905680d6071dfe784 Mon Sep 17 00:00:00 2001 From: Roland Date: Fri, 9 Jun 2023 16:09:56 -0600 Subject: [PATCH] Fixing API index page for Sanic. --- wrolpi/root_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrolpi/root_api.py b/wrolpi/root_api.py index c4497520..aa7b2857 100644 --- a/wrolpi/root_api.py +++ b/wrolpi/root_api.py @@ -109,8 +109,8 @@ index_html = ''' ''' -@api_app.get('/') -def index(_): +@api_bp.get('/') +async def index(_): return response.html(index_html)