From 8839f71c1f55abfbd0ef0420670969f02d78cdb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Victor?= Date: Wed, 22 Nov 2023 20:21:54 -0300 Subject: [PATCH] Corrige commit feito errado --- src/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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):