Description
In adminService.js:48, the finalizeRound endpoint has a leading / that other endpoints don't:
All other endpoints use relative paths like:
admin/round/${id}/cancel
admin/round/${id}/activate
With axios, when a URL starts with /, it is resolved as absolute relative to the origin, ignoring the baseURL (which includes /v1/).
Steps to Reproduce
- As a coordinator, attempt to finalize a round.
- Observe the network request goes to
/admin/round/{id}/finalize instead of /v1/admin/round/{id}/finalize.
Expected Behavior
Request should go to:
{baseURL}/admin/round/{id}/finalize
(i.e., /v1/admin/round/{id}/finalize).
Actual Behavior
Request goes to:
/admin/round/{id}/finalize
(missing /v1/ prefix), resulting in a 404 or routing error. Round finalization fails from the frontend.