Files
MIND/frontend/ui.py
2024-03-01 12:47:50 +01:00

22 lines
528 B
Python

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