# 路由 + 视图函数 from flask import Blueprint, jsonify, render_template, request from .models import * # 蓝图 blue = Blueprint('user',__name__) ''' 字符串接收 ''' # 登录 @blue.route('/') @blue.route('/view') def index(): return render_template('index.html') @blue.route('/auth-login') def login(): return render_template('auth-login.html') @blue.route('/auth-index') def auth_index(): return render_template('auth-index.html') @blue.route('/auth-user') def auth_user(): return render_template('auth-user.html') @blue.route('/auth-city-code') def auth_city_code(): return render_template('auth-city-code.html') @blue.route('/auth-road-heath') def auth_road_heath(): return render_template('auth-road-heath.html') @blue.route('/map-view') def map_view(): return render_template('map-view.html') @blue.route('/map-beijing') def map_beijing(): return render_template('map-beijing.html') @blue.route('/map-road') def map_road(): return render_template('map-road.html') @blue.route('/auth-map-road') def auth_map_road(): return render_template('auth-map-road.html') @blue.route('/auth-register') def auth_register(): return render_template('auth-register.html')