BackendSpace / app /main.py
2nzi's picture
update allow
8841a46 verified
raw
history blame contribute delete
550 Bytes
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.core.config import settings
from app.api.routes import stripe_routes, routes
app = FastAPI(title="Quiz Video API")
# Configuration CORS
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
app.include_router(routes.router, prefix="/api")
app.include_router(stripe_routes.router, prefix="/api")
@app.get("/")
async def root():
return {"message": "Quiz Video API"}