Merge branch 'maxz-real-impl' into mvp_step2_dev

This commit is contained in:
2023-09-30 13:33:39 +09:00
31 changed files with 1196 additions and 189 deletions

View File

@@ -173,4 +173,10 @@ def get_flow(db: Session, flowid: str):
flow = db.query(models.Flow).filter(models.Flow.flowid == flowid).first()
if not flow:
raise HTTPException(status_code=404, detail="Data not found")
return flow
return flow
def get_flows_by_app(db: Session, appid: str):
flows = db.query(models.Flow).filter(models.Flow.appid == appid).all()
if not flows:
raise HTTPException(status_code=404, detail="Data not found")
return flows