22 lines
530 B
Python
22 lines
530 B
Python
from fastapi import APIRouter
|
|
|
|
from backend.dependecies import SessionDependency
|
|
from schemas.marketplace import *
|
|
from services.marketplace import MarketplaceService
|
|
|
|
marketplace_router = APIRouter(
|
|
prefix="/marketplace",
|
|
tags=["marketplace"]
|
|
)
|
|
|
|
|
|
@marketplace_router.get(
|
|
'/base/get-all',
|
|
operation_id='get_all_base_marketplaces',
|
|
response_model=GetAllBaseMarketplacesResponse
|
|
)
|
|
async def get_all(
|
|
session: SessionDependency
|
|
):
|
|
return await MarketplaceService(session).get_all_base_marketplaces()
|