Skip to content

[Bug]: finalizeRound API path has leading slash, bypassing baseURL prefix #464

@userAdityaa

Description

@userAdityaa

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

  1. As a coordinator, attempt to finalize a round.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions