Fix: Remove remaining /api prefixes from routes#56
Merged
Conversation
…es to remove '/api' prefix
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request completes the removal of /api prefixes from backend routes by updating remaining instances that were still using the old /api/v1 path to use the new /v1 prefix.
- Updates environment configuration files to use the new API URL format
- Modifies authentication strategy callback URLs to remove
/apiprefix - Updates backend service fetch URLs and test cases
- Corrects documentation examples to reflect the new route structure
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| apps/frontend/.env.local.example | Updates API URL environment variable to use /v1 instead of /api/v1 |
| apps/backend/src/song/song-upload/song-upload.service.ts | Updates fetch URLs for sound list data endpoints |
| apps/backend/src/auth/strategies/magicLinkEmail.strategy.ts | Updates magic link callback and confirm URLs |
| apps/backend/src/auth/strategies/magicLinkEmail.strategy.spec.ts | Updates test cases with new magic link callback URLs |
| apps/backend/src/auth/strategies/google.strategy.ts | Updates Google OAuth callback URL |
| apps/backend/src/auth/strategies/github.strategy.ts | Updates GitHub OAuth callback URL |
| apps/backend/src/auth/strategies/discord.strategy/index.ts | Updates Discord OAuth callback URL |
| CONTRIBUTING.md | Updates documentation examples with new API URL format |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Bentroen
approved these changes
Sep 28, 2025
Member
Bentroen
left a comment
There was a problem hiding this comment.
Thank you for reviewing the missing places! I'll be merging the PR now.
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.
This pull request revises the removal of the
/apiprefix from backend routes. It was found that some locations were still using the old/api/v1path.This change updates all remaining instances to use the correct
/v1prefix, ensuring consistency across the application.