python学习
This commit is contained in:
26
web/controllers/food/Food.py
Normal file
26
web/controllers/food/Food.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from flask import Blueprint,render_template
|
||||
|
||||
route_food = Blueprint( 'food_page',__name__ )
|
||||
|
||||
@route_food.route( "/index" )
|
||||
def index():
|
||||
return render_template( "food/index.html" )
|
||||
|
||||
@route_food.route( "/info" )
|
||||
def info():
|
||||
return render_template( "food/info.html" )
|
||||
|
||||
|
||||
@route_food.route( "/set" )
|
||||
def set():
|
||||
return render_template( "food/set.html" )
|
||||
|
||||
|
||||
@route_food.route( "/cat" )
|
||||
def cat():
|
||||
return render_template( "food/cat.html" )
|
||||
|
||||
@route_food.route( "/cat-set" )
|
||||
def catSet():
|
||||
return render_template( "food/cat_set.html" )
|
||||
1
web/controllers/food/__init__.py
Normal file
1
web/controllers/food/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
Reference in New Issue
Block a user