BuyAndKnow/bk_api/bills/endpoints.py

18 lines
587 B
Python
Raw Permalink Normal View History

2020-01-05 21:41:14 +01:00
from django.conf.urls import include, url
from rest_framework import routers
from .views import TagViewSet, ProductViewSet, ReceiptViewSet, ProductOnBillViewSet, ShopTagViewSet, ShopViewSet
router = routers.DefaultRouter()
router.register('tags', TagViewSet)
router.register('shop_tags', ShopTagViewSet)
router.register('shops', ShopViewSet)
router.register('products', ProductViewSet)
router.register('products_on_bills', ProductOnBillViewSet)
router.register('receipts', ReceiptViewSet)
2020-01-27 14:46:28 +01:00
# router.register('stats', GeneralStats)
2020-01-05 21:41:14 +01:00
urlpatterns = [
url("^", include(router.urls)),
]