Merged
Conversation
pablogsal
approved these changes
Jun 24, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR moves the API endpoints under the /api namespace to provide a more consistent base URL for all API calls. Key changes include updating the API_BASE constant in multiple frontend files to include "/api", revising all endpoint URLs accordingly, and modifying the backend admin router prefix from "/admin" to "/api/admin".
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/lib/api.ts | Updates API endpoints to use a centralized API_BASE with "/api" |
| frontend/src/app/auth/callback/page.tsx | Updates API_BASE to include "/api" for authentication callbacks |
| frontend/src/app/admin/page.tsx | Updates API_BASE definition for admin page |
| frontend/src/app/admin/components/* | Updates API_BASE in admin component files |
| frontend/Dockerfile | Sets the build argument for NEXT_PUBLIC_API_BASE with "/api" |
| backend/app/routers/admin.py | Modifies the admin router prefix to "/api/admin" |
Comments suppressed due to low confidence (1)
backend/app/routers/admin.py:62
- Verify that the updated prefix '/api/admin' aligns with the frontend's API calls so that endpoints like '/admin/me' correctly resolve to '/api/admin/me'.
router = APIRouter(prefix="/api/admin", tags=["admin"])
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.