File: __init__.py

package info (click to toggle)
flask 3.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,668 kB
  • sloc: python: 10,090; makefile: 32; sql: 22; sh: 19
file content (20 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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")