|
|
|
@ -18,7 +18,7 @@ from .service import import_aro_project, fetch_aro_record, reset_project, create
|
|
|
|
|
|
|
|
|
|
|
|
router = APIRouter()
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
|
|
|
|
|
|
@router.post("", response_model=StandardResponse[None])
|
|
|
|
@router.post("", response_model=StandardResponse[str])
|
|
|
|
async def import_aro(
|
|
|
|
async def import_aro(
|
|
|
|
db_session: DbSession,
|
|
|
|
db_session: DbSession,
|
|
|
|
current_user: CurrentUser,
|
|
|
|
current_user: CurrentUser,
|
|
|
|
@ -38,7 +38,7 @@ async def import_aro(
|
|
|
|
|
|
|
|
|
|
|
|
result = await import_aro_project(db_session=db_session, aeros_project_in=aeros_project_input)
|
|
|
|
result = await import_aro_project(db_session=db_session, aeros_project_in=aeros_project_input)
|
|
|
|
|
|
|
|
|
|
|
|
return {"data": None, "status": "success", "message": "Success"}
|
|
|
|
return {"data": result, "status": "success", "message": "Success"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@router.get("/download")
|
|
|
|
@router.get("/download")
|
|
|
|
|