from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from app.api.v1.api import api_router from app.core.config import settings app = FastAPI( title="Service Finder API", version="2.0.0", openapi_url="/api/v1/openapi.json", docs_url="/docs" ) # CORS beállítások app.add_middleware( CORSMiddleware, allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"], ) # Routerek befűzése app.include_router(api_router, prefix="/api/v1") @app.get("/") async def root(): return {"status": "online", "message": "Service Finder API v2.0"}