You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
304 B
Python

2 years ago
from flask import Blueprint, render_template, request, url_for
2 years ago
import os
2 years ago
bp = Blueprint("home", __name__, url_prefix="/")
@bp.route("/")
def home():
2 years ago
path = "postit/static/contents"
pages = [f.name for f in os.scandir(path) if f.is_dir()]
return render_template("home.html", pages=pages)