KLypse / app /main.py
devjhawar's picture
Update app/main.py
67cf20b verified
raw
history blame contribute delete
639 Bytes
# app/main.py
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.api import endpoints
from app.config import config
app = FastAPI(
title="KLYPSE API",
description="YouTube Video Q&A with AI",
version="1.0.0"
)
# Add CORS middleware
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
# Include API routes
app.include_router(endpoints.router)
@app.get("/")
def root():
return {"message": "Klypse API", "version": "1.0.0"}
@app.get("/health")
def health():
return {"status": "healthy"}