1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-11-08 21:21:06 +00:00
AdvLabDB/advlabdb/routes.py

39 lines
1 KiB
Python
Raw Normal View History

2021-03-18 13:53:55 +00:00
from advlabdb import app
from flask import render_template, request, url_for
from advlabdb.utils import *
2021-03-18 13:53:55 +00:00
@app.route("/")
def index():
page = "index"
return render_template(page + ".html", navbarItems=navbarItems(page))
@app.route("/students")
def students():
page = "students"
return render_template(page + ".html", navbarItems=navbarItems(page))
@app.route("/assistants")
def assistants():
page = "assistants"
return render_template(page + ".html", navbarItems=navbarItems(page))
@app.route("/experiments")
def experiments():
page = "experiments"
return render_template(page + ".html", navbarItems=navbarItems(page))
@app.route("/appointments")
def appointments():
page = "appointments"
return render_template(page + ".html", navbarItems=navbarItems(page))
@app.route("/groups")
def groups():
page = "groups"
return render_template(page + ".html", navbarItems=navbarItems(page))
@app.route("/users")
def users():
page = "users"
return render_template(page + ".html", navbarItems=navbarItems(page))