Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Feature/upgrade to microservice#4

Merged
RandithaK merged 3 commits into
devfrom
feature/upgrade_to_microservice
Sep 28, 2025
Merged

Feature/upgrade to microservice#4
RandithaK merged 3 commits into
devfrom
feature/upgrade_to_microservice

Conversation

@RandithaK

Copy link
Copy Markdown
Member

No description provided.

RandithaK and others added 3 commits September 28, 2025 12:39
Refactors the initial gateway to be a production-ready service. This introduces a flexible routing mechanism, centralized authentication, and essential middleware for a microservices architecture.

Decouples the frontend from individual microservices by routing all API requests through the central gateway.

Changes:
- **Updated API Client:** The `apiClient.ts` `baseURL` is now configured to point to the API Gateway's address (`http://localhost:8080/api/v1`).
- **Standardized Service Calls:** Removed hardcoded prefixes (e.g., `/api/v1/users/`) from all calls in `authService.ts` and `userService.ts`. All paths are now relative to the `baseURL`.
- This resolves `404 Not Found` errors caused by duplicated path prefixes (e.g., `/api/v1/api/v1/...`).
@RandithaK
RandithaK merged commit 0055be3 into dev Sep 28, 2025
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant