# _*_ coding: utf-8 _*_
"""
  Created by Alimazing on 2018/5/31.
"""
from flask import Blueprint

from app.api.v1 import user, client, token, \
						banner, theme, product, category, \
						address, order

__author__ = 'Alimazing'

def create_blueprint_v1():
	bp_v1 = Blueprint('v1', __name__)
	# 将红图 user.api 注册进蓝图 bp_v1
	user.api.register(bp_v1)
	client.api.register(bp_v1)
	token.api.register(bp_v1)
	banner.api.register(bp_v1)
	theme.api.register(bp_v1)
	product.api.register(bp_v1)
	category.api.register(bp_v1)
	address.api.register(bp_v1)
	order.api.register(bp_v1)

	return bp_v1


template = {
	"tags": [
		{
			"name": "banner",
			"description": "首页轮播图"
		},
		{
			"name": "address",
			"description": "用户地址"
		},
		{
			"name": "token",
			"description": "登录令牌"
		}
	]
}

# _*_ coding: utf-8 _*_
"""
  Created by Alimazing on 2018/5/31.
"""
from flask import Blueprint

from app.api.v1 import user, client, token, \
						banner, theme, product, category, \
						address, order

__author__ = 'Alimazing'

def create_blueprint_v1():
	bp_v1 = Blueprint('v1', __name__)
	# 将红图 user.api 注册进蓝图 bp_v1
	user.api.register(bp_v1)
	client.api.register(bp_v1)
	token.api.register(bp_v1)
	banner.api.register(bp_v1)
	theme.api.register(bp_v1)
	product.api.register(bp_v1)
	category.api.register(bp_v1)
	address.api.register(bp_v1)
	order.api.register(bp_v1)

	return bp_v1


template = {
	"tags": [
		{
			"name": "banner",
			"description": "首页轮播图"
		},
		{
			"name": "address",
			"description": "用户地址"
		},
		{
			"name": "token",
			"description": "登录令牌"
		}
	]
}

# _*_ coding: utf-8 _*_ Created by Alimazing on 2018/5/31. # 将红图 user.api 注册进蓝图 bp_v1