Configure index route (redirect to login)

This commit is contained in:
Santiago L 2022-04-05 10:49:27 +02:00
parent 348970946b
commit 66afb7b683
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ from ereuse_devicehub.utils import is_safe_url
core = Blueprint('core', __name__)
@core.route("/")
def index():
return flask.redirect(flask.url_for('core.login'))
class LoginView(View):
methods = ['GET', 'POST']
template_name = 'ereuse_devicehub/user_login.html'