-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/migrate routes #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,9 @@ | ||
| """API routes package.""" | ||
|
|
||
| from fastapi import APIRouter | ||
|
|
||
| from app.api.routes import documents | ||
|
|
||
| router = APIRouter(prefix="/api/v1") | ||
|
|
||
| router.include_router(documents.router) | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||||
| from fastapi import APIRouter | ||||||
|
|
||||||
| router = APIRouter(tags=["base"]) | ||||||
|
|
||||||
| @router.get("/") | ||||||
| async def root(): | ||||||
| return {"message": "RAGManager up"} | ||||||
|
||||||
| return {"message": "RAGManager up"} | |
| return {"message": "Hello World"} |
Copilot
AI
Dec 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The health check response message has changed from "200 corriendo..." to "200 running...". This is a breaking change that could affect clients expecting the original Spanish message. Consider maintaining backward compatibility or documenting this as a breaking change.
| return {"message": "200 running..."} | |
| return {"message": "200 corriendo..."} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API versioning prefix "/api/v1" introduces a breaking change. The documents endpoint will now be accessible at "/api/v1/documents/..." instead of "/documents/...". Existing clients will receive 404 errors unless they update their endpoints. Consider implementing redirects from old paths or documenting this breaking change clearly in release notes.