REFACTOR API gateway
This commit is contained in:
@@ -173,18 +173,10 @@ async def global_exception_handler(request: Request, exc: Exception):
|
||||
}
|
||||
)
|
||||
|
||||
# Include API routers - NO AUTH DEPENDENCIES HERE
|
||||
# Authentication is handled by API Gateway
|
||||
app.include_router(
|
||||
training.router,
|
||||
tags=["training"]
|
||||
)
|
||||
# Include API routers
|
||||
app.include_router(training.router, prefix="/api/v1", tags=["training"])
|
||||
app.include_router(models.router, prefix="/api/v1", tags=["models"])
|
||||
|
||||
app.include_router(
|
||||
models.router,
|
||||
prefix="/models",
|
||||
tags=["models"]
|
||||
)
|
||||
|
||||
# Health check endpoints
|
||||
@app.get("/health")
|
||||
|
||||
Reference in New Issue
Block a user