feat: Unified Auth system and SendGrid integration - STABLE v1.0.1
This commit is contained in:
@@ -5,23 +5,26 @@ from app.core.config import settings
|
||||
|
||||
app = FastAPI(
|
||||
title="Service Finder API",
|
||||
version="2.0.0",
|
||||
version="2.0.0", # A rendszer verziója, de a végpont marad v1
|
||||
openapi_url="/api/v1/openapi.json",
|
||||
docs_url="/docs"
|
||||
)
|
||||
|
||||
# CORS beállítások
|
||||
# PONTOS CORS BEÁLLÍTÁS
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"],
|
||||
allow_origins=[
|
||||
"http://192.168.100.10:3001", # Frontend portja
|
||||
"http://localhost:3001",
|
||||
"https://dev.profibot.hu" # Ha van NPM proxy
|
||||
],
|
||||
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"}
|
||||
return {"status": "online", "message": "Service Finder Master System v1.0"}
|
||||
Reference in New Issue
Block a user