from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from app.routes import auth, main # Import your route-related modules app = FastAPI() # CORS configuration, error handlers, and other global settings app.add_middleware(CORSMiddleware, allow_origins=["*"]) # Include route-related modules app.include_router(auth.router) app.include_router(main.router)