lavkach3

Форк
0
/
inventory_router.py 
20 строк · 2.0 Кб
1
from fastapi import APIRouter, Depends
2

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
10

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]))])
21

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.