feat: stage3 — REST API endpoints and dummy FlightProcessor

This commit is contained in:
Yuzviak
2026-03-22 22:32:20 +02:00
parent e47274bcbd
commit f09061dd02
9 changed files with 568 additions and 15 deletions
+11 -7
View File
@@ -3,21 +3,25 @@
from fastapi import FastAPI
from gps_denied import __version__
from gps_denied.api.routers import flights
def create_app() -> FastAPI:
"""Create and configure the FastAPI application."""
application = FastAPI(
title="GPS-Denied Onboard",
"""Factory function to create and configure the FastAPI application."""
app = FastAPI(
title="GPS-Denied Onboard API",
description="REST API for UAV Flight Processing in GPS-denied environments.",
version=__version__,
description="UAV geolocalization service for GPS-denied environments",
)
@application.get("/health")
async def health() -> dict:
app.include_router(flights.router)
@app.get("/health", tags=["Health"])
async def health() -> dict[str, str]:
"""Simple health check endpoint."""
return {"status": "ok"}
return application
return app
app = create_app()