Commit 47e1ed42 authored by Ridma Dilshan's avatar Ridma Dilshan

Fix Update

parent c40e2ab2
from fastapi import FastAPI from fastapi import FastAPI
from controllers import translate_controler, users_controller from controllers import (
translate_controler,
users_controller,
video_to_sign_language_controller,
)
from fastapi.responses import RedirectResponse from fastapi.responses import RedirectResponse
from fastapi.middleware.cors import CORSMiddleware from fastapi.middleware.cors import CORSMiddleware
from pymongo.mongo_client import MongoClient from pymongo.mongo_client import MongoClient
...@@ -37,6 +41,7 @@ logger = setup_logger() ...@@ -37,6 +41,7 @@ logger = setup_logger()
app.include_router(users_controller.router) app.include_router(users_controller.router)
app.include_router(translate_controler.router) app.include_router(translate_controler.router)
app.include_router(video_to_sign_language_controller.router)
# Add cores middleware # Add cores middleware
...@@ -67,4 +72,4 @@ app.add_middleware( ...@@ -67,4 +72,4 @@ app.add_middleware(
@app.get("/") @app.get("/")
async def root(): async def root():
url = app.docs_url or "/docs" url = app.docs_url or "/docs"
return RedirectResponse(url) return RedirectResponse(url)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment