chatbotAPI / src /main.py
dhruv4023's picture
Synced repo using 'sync_with_huggingface' Github Action
a3386d3 verified
raw
history blame contribute delete
424 Bytes
from fastapi import APIRouter
from src.routes.main import main_router
import src.config.cloudinaryConfig
from src.config.databaseConfig import DATABASE
origins = ["http://localhost:3000"]
main = APIRouter()
DATABASE()
main.include_router(main_router, prefix="/api", tags=["main"])
from src.helpers.response import ResponseHandler
@main.get("/")
async def home():
return ResponseHandler.success(message_code=9000)