You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
509 B

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .api_views import StockOperationViewSet
from .views import scan_barcode_camera, process_barcode
router = DefaultRouter()
router.register(r'stock-operations', StockOperationViewSet, basename='stock-operation')
urlpatterns = [
path('api/', include(router.urls)),
path('scan-barcode-camera/', scan_barcode_camera, name='scan-barcode-camera'),
path('scan-barcode/', process_barcode, name='scan-barcode'),
]