forked from orbit-oss/flask
20 lines
366 B
Python
20 lines
366 B
Python
from flask import Blueprint
|
|
from flask import render_template
|
|
|
|
admin = Blueprint(
|
|
"admin",
|
|
__name__,
|
|
url_prefix="/admin",
|
|
template_folder="templates",
|
|
static_folder="static",
|
|
)
|
|
|
|
|
|
@admin.route("/")
|
|
def index():
|
|
return render_template("admin/index.html")
|
|
|
|
|
|
@admin.route("/index2")
|
|
def index2():
|
|
return render_template("./admin/index.html")
|