<filename>apps/goods/urls.py
from . import views
from flask import Blueprint

blue_print = Blueprint('goods', __name__, url_prefix='/')

blue_print.add_url_rule('', view_func=views.IndexView.as_view('index'))
blue_print.add_url_rule('goods/<int:pk>', view_func=views.DetailView.as_view('detail'))
blue_print.add_url_rule('list/<int:type_id>/<int:page>', view_func=views.ListView.as_view('list'))

<filename>apps/goods/urls.py
from . import views
from flask import Blueprint

blue_print = Blueprint('goods', __name__, url_prefix='/')

blue_print.add_url_rule('', view_func=views.IndexView.as_view('index'))
blue_print.add_url_rule('goods/<int:pk>', view_func=views.DetailView.as_view('detail'))
blue_print.add_url_rule('list/<int:type_id>/<int:page>', view_func=views.ListView.as_view('list'))
