@mytec: iter1.3 ready for test

This commit is contained in:
2026-01-31 00:14:57 +02:00
parent f7fd82fb58
commit b21fa9b9cb
4 changed files with 694 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.core.database import connect_to_mongo, close_mongo_connection
from app.api.routes import health, projects, terrain
from app.api.routes import health, projects, terrain, coverage
@asynccontextmanager
@@ -17,7 +17,7 @@ async def lifespan(app: FastAPI):
app = FastAPI(
title="RFCP Backend API",
description="RF Coverage Planning Backend",
version="1.2.0",
version="1.3.0",
lifespan=lifespan,
)
@@ -34,11 +34,12 @@ app.add_middleware(
app.include_router(health.router, prefix="/api/health", tags=["health"])
app.include_router(projects.router, prefix="/api/projects", tags=["projects"])
app.include_router(terrain.router, prefix="/api/terrain", tags=["terrain"])
app.include_router(coverage.router, prefix="/api/coverage", tags=["coverage"])
@app.get("/")
async def root():
return {"message": "RFCP Backend API", "version": "1.2.0"}
return {"message": "RFCP Backend API", "version": "1.3.0"}
if __name__ == "__main__":