homelog/api/urls.py

15 lines
541 B
Python
Raw Normal View History

2022-04-14 14:31:46 +00:00
from django.urls import include, path
from rest_framework import routers
from .views import ContainerViewSet, ContainerTypeViewSet, AssetViewSet, GtinProductViewSet
router = routers.DefaultRouter()
router.register(r'containers', ContainerViewSet)
router.register(r'container_types', ContainerTypeViewSet)
router.register(r'assets', AssetViewSet)
router.register(r'products', GtinProductViewSet)
urlpatterns = [
path('', include(router.urls)),
2022-05-30 09:41:48 +00:00
path('auth/', include('rest_framework.urls', namespace='rest_framework'))
2022-04-14 14:31:46 +00:00
]