15 lines
362 B
Python
15 lines
362 B
Python
from fastapi import FastAPI
|
|
from .routers import celebrities # Importa il nuovo router
|
|
|
|
app = FastAPI()
|
|
|
|
# Includi il router delle celebrities nell'app principale
|
|
app.include_router(celebrities.router)
|
|
|
|
@app.get("/api")
|
|
def read_root():
|
|
return {"message": "Ciao dal backend FastAPI!"}
|
|
|
|
@app.get("/api/health")
|
|
def health_check():
|
|
return {"status": "ok"} |