- "docker-compose.yml" - ".env.example" - "docker/Dockerfile.api" - "docker/Dockerfile.web" - "docker/nginx.conf" - "backend/main.py" - "backend/requirements.txt" - "config/canonical_tags.yaml" GSD-Task: S01/T01
28 lines
653 B
Python
28 lines
653 B
Python
"""Chrysopedia API — Knowledge extraction and retrieval system."""
|
|
|
|
from fastapi import FastAPI
|
|
from fastapi.middleware.cors import CORSMiddleware
|
|
|
|
app = FastAPI(
|
|
title="Chrysopedia API",
|
|
description="Knowledge extraction and retrieval for music production content",
|
|
version="0.1.0",
|
|
)
|
|
|
|
app.add_middleware(
|
|
CORSMiddleware,
|
|
allow_origins=["*"],
|
|
allow_credentials=True,
|
|
allow_methods=["*"],
|
|
allow_headers=["*"],
|
|
)
|
|
|
|
|
|
@app.get("/health")
|
|
async def health_check():
|
|
return {"status": "ok", "service": "chrysopedia-api"}
|
|
|
|
|
|
@app.get("/api/v1/health")
|
|
async def api_health():
|
|
return {"status": "ok", "version": "0.1.0"}
|