소스 검색

fix a bug

chenhaiyang 1 년 전
부모
커밋
377e951fd0
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/api/routers/devices.py
  2. 1 1
      app/main.py

+ 1 - 1
app/api/routers/devices.py

@@ -243,7 +243,7 @@ async def get_acatvi_mode(params: domain_devices.ACATVIModeRequest):
     return {"mode": new_mode}
 
 
-@router.post("/instructions/acatvi/early-start", response_model=domain_devices.ACATVIEarlyStartPredictionResponse)
+@router.post("/prediction/acatvi/early-start", response_model=domain_devices.ACATVIEarlyStartPredictionResponse)
 async def get_acatvi_early_start_prediction(
         params: domain_devices.ACATVIEarlyStartPredictionRequest,
         db: Session = Depends(get_db)

+ 1 - 1
app/main.py

@@ -27,7 +27,7 @@ logging.getLogger().handlers = [InterceptHandler()]
 
 
 def get_application() -> FastAPI:
-    application = FastAPI(title=settings.PROJECT_NAME)
+    application = FastAPI(title=settings.PROJECT_NAME, root_path="/env-py")
 
     application.add_event_handler("startup", create_start_app_handler())