25 lines
No EOL
395 B
Python
25 lines
No EOL
395 B
Python
from fastapi import FastAPI
|
|
|
|
from app.db.health import check_database
|
|
|
|
app = FastAPI(
|
|
title="Hermes API",
|
|
version="0.1.0",
|
|
description="Backend von Olympus"
|
|
)
|
|
|
|
|
|
@app.get("/")
|
|
def root():
|
|
return {
|
|
"service": "Hermes",
|
|
"status": "running"
|
|
}
|
|
|
|
|
|
@app.get("/health")
|
|
def health():
|
|
return {
|
|
"status": "healthy",
|
|
"database": check_database()
|
|
} |