mirror of
https://github.com/Sosokker/HomieCare.git
synced 2025-12-19 02:04:03 +01:00
Add action query to path
This commit is contained in:
parent
3bf121db8c
commit
68a26edcfc
@ -2,7 +2,7 @@ import uvicorn
|
|||||||
|
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.middleware.cors import CORSMiddleware
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
from routers import video, weather, prediction, camera, recommend
|
from routers import video, weather, prediction, camera, recommend, action
|
||||||
|
|
||||||
|
|
||||||
app = FastAPI(
|
app = FastAPI(
|
||||||
@ -34,6 +34,7 @@ app.include_router(weather.router, prefix="/weather")
|
|||||||
app.include_router(prediction.router, prefix="/weather")
|
app.include_router(prediction.router, prefix="/weather")
|
||||||
app.include_router(camera.router, prefix="/camera")
|
app.include_router(camera.router, prefix="/camera")
|
||||||
app.include_router(recommend.router, prefix="/recommend")
|
app.include_router(recommend.router, prefix="/recommend")
|
||||||
|
app.include_router(action.router, prefix="/action")
|
||||||
|
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
def read_root():
|
def read_root():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user