Files
MIND/frontend/ui.py
2024-02-01 14:42:10 +01:00

23 lines
550 B
Python

#-*- coding: utf-8 -*-
from flask import Blueprint, render_template
ui = Blueprint('ui', __name__)
methods = ['GET']
class UIVariables:
url_prefix: str = ''
@ui.route('/', methods=methods)
def ui_login():
return render_template('login.html', url_prefix=UIVariables.url_prefix)
@ui.route('/reminders', methods=methods)
def ui_reminders():
return render_template('reminders.html', url_prefix=UIVariables.url_prefix)
@ui.route('/admin', methods=methods)
def ui_admin():
return render_template('admin.html', url_prefix=UIVariables.url_prefix)