# --coding:utf-8--
from rest_framework import routers

from .user import UserAPIView
from .goods import GoodsAPIView
from .active import ActiveAPIView,ActiveGoodsAPIView
# 声明api路由
api_router = routers.DefaultRouter()

# 向api路由中注册ViewSet
api_router.register('users',UserAPIView)
api_router.register('goods',GoodsAPIView)
api_router.register('active',ActiveAPIView)
api_router.register('activegoods',ActiveGoodsAPIView)
