diff --git a/src/main.py b/src/main.py index 09e708d..98c0647 100644 --- a/src/main.py +++ b/src/main.py @@ -5,7 +5,7 @@ load_dotenv() -from controller import commentController +from controller import commentController, scheduleController from database import SessionLocal, engine from model import commentModel @@ -23,13 +23,13 @@ allow_headers=["*"], ) +app.include_router(prefix="/api", router=commentController.comment) +app.include_router(prefix="/api", router=scheduleController.schedule) + @app.get("/") async def root(): return {"message": "Hello from Video Service"} - -app.include_router(prefix="/api", router=commentController.comment) - if __name__ == '__main__': # pragma: no cover port = 8001 if (len(sys.argv) == 2):