1
from fastapi import APIRouter, Depends
3
from app.inventory.location.api import location_router, location_type_router
4
from app.inventory.order.api import order_router, order_type_router
5
from app.inventory.order.api.move_api import move_router
6
from app.inventory.order.api.suggest_api import suggest_router
7
from app.inventory.product_storage.api import product_storage_type_router
8
from app.inventory.quant.api import quant_router, lot_router
9
from core.fastapi.dependencies import PermissionDependency, IsAuthenticated
11
inventory_router = APIRouter()
12
inventory_router.include_router(quant_router, prefix="/api/inventory/quant", tags=["Quant"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
13
inventory_router.include_router(lot_router, prefix="/api/inventory/lot", tags=["Lot"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
14
inventory_router.include_router(location_type_router, prefix="/api/inventory/location_type", tags=["LocationType"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
15
inventory_router.include_router(location_router, prefix="/api/inventory/location", tags=["Location"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
16
inventory_router.include_router(order_router, prefix="/api/inventory/order", tags=["Order"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
17
inventory_router.include_router(move_router, prefix="/api/inventory/move", tags=["Order"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
18
inventory_router.include_router(suggest_router, prefix="/api/inventory/suggest", tags=["Order"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
19
inventory_router.include_router(order_type_router, prefix="/api/inventory/order_type", tags=["OrderType"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
20
inventory_router.include_router(product_storage_type_router, prefix="/api/inventory/product_storage_type", tags=["ProductStorageType"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])