mirror of
https://github.com/StefBuwalda/WebTech.git
synced 2025-10-29 19:00:00 +00:00
13 lines
313 B
Python
13 lines
313 B
Python
from flask import Blueprint, render_template
|
|
from flask_login import login_required # type: ignore
|
|
|
|
dash_blueprint = Blueprint("dash", __name__, template_folder="templates")
|
|
|
|
# Routes
|
|
|
|
|
|
@dash_blueprint.route("/", methods=["GET", "POST"])
|
|
@login_required
|
|
def index():
|
|
return render_template("dashboard.html")
|