C:\Users\huang\vincent\code\mooc\order\web\controllers\api\__init__.py
from flask import Blueprint
route_api = Blueprint('api_page', __name__)
@route_api.route("/")
def index():
return "Mina api V1.0"
效果:
C:\Users\huang\vincent\code\mooc\order\web\controllers\api\__init__.py
from flask import Blueprint
route_api = Blueprint('api_page', __name__)
@route_api.route("/")
def index():
return "Mina api V1.0"
效果: