forked from orbit-oss/flask
Added a migrated moduleapp as blueprint app
This commit is contained in:
parent
e17e74d3a7
commit
37fab78887
9 changed files with 65 additions and 3 deletions
13
tests/blueprintapp/apps/admin/__init__.py
Normal file
13
tests/blueprintapp/apps/admin/__init__.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from flask import Blueprint, render_template
|
||||
|
||||
admin = Blueprint(__name__, url_prefix='/admin')
|
||||
|
||||
|
||||
@admin.route('/')
|
||||
def index():
|
||||
return render_template('admin/index.html')
|
||||
|
||||
|
||||
@admin.route('/index2')
|
||||
def index2():
|
||||
return render_template('./admin/index.html')
|
||||
Loading…
Add table
Add a link
Reference in a new issue