From 2ff7f796fc7c9f1ffb24bd804904343b9eb6bf1c Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Mon, 19 Nov 2018 01:40:31 -0300 Subject: [PATCH] run: add static blueprint to set_blueprints - run: remove old handler for /register --- run.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/run.py b/run.py index 9fa703f..77a929c 100644 --- a/run.py +++ b/run.py @@ -14,7 +14,7 @@ import config from litecord.blueprints import ( gateway, auth, users, guilds, channels, webhooks, science, - voice, invites, relationships, dms, icons, nodeinfo + voice, invites, relationships, dms, icons, nodeinfo, static ) # those blueprints are separated from the "main" ones @@ -105,6 +105,7 @@ def set_blueprints(app_): icons: -1, nodeinfo: -1, + static: -1 } for bp, suffix in bps.items(): @@ -285,9 +286,3 @@ async def handle_500(err): async def index(): """sample index page.""" return 'hewwo' - - -@app.route('/register') -async def register_frontend(): - """basic register page.""" - return await send_file('static/invite_register.html')