1
from fastapi import APIRouter, Depends
3
from app.basic.partner.api.partner_api import partner_router
4
from app.basic.product.api import product_category_router, product_router
5
from app.basic.store.api.store_api import store_router
6
from app.basic.uom.api.uom_api import uom_router, uom_category_router
7
from core.fastapi.dependencies import (
12
basic_router = APIRouter(prefix='/api/basic')
13
basic_router.include_router(partner_router, prefix="/partner", tags=["Partner"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
14
basic_router.include_router(store_router, prefix="/store", tags=["Store"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
15
basic_router.include_router(uom_category_router, prefix="/uom_category", tags=["Uom", "Category"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
16
basic_router.include_router(uom_router, prefix="/uom", tags=["Uom", "Uom"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
17
basic_router.include_router(product_category_router, prefix="/product_category", tags=["ProductCategory"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])
18
basic_router.include_router(product_router, prefix="/product", tags=["Product"], dependencies=[Depends(PermissionDependency([IsAuthenticated]))])