File size: 424 Bytes
a3386d3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)