Bladeren bron

fix a bug

chenhaiyang 1 jaar geleden
bovenliggende
commit
377e951fd0
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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())