log in
This commit is contained in:
9
app/routes/topics.py
Normal file
9
app/routes/topics.py
Normal file
@ -0,0 +1,9 @@
|
||||
from flask import Blueprint, render_template
|
||||
from ..models import Users
|
||||
|
||||
bp = Blueprint("topics", __name__, url_prefix = "/topics/")
|
||||
|
||||
@bp.get("/")
|
||||
def all_topics():
|
||||
admin = Users.find({"id": 1})
|
||||
return render_template("topics/topics.html", admin = admin)
|
Reference in New Issue
Block a user