Skip to content

fix: register routeplanner sub-routes correctly - #225

Merged
1Lucas1apk merged 1 commit into
PerformanC:devfrom
Akinori107:dev
Aug 23, 2026
Merged

fix: register routeplanner sub-routes correctly#225
1Lucas1apk merged 1 commit into
PerformanC:devfrom
Akinori107:dev

Conversation

@Akinori107

Copy link
Copy Markdown

Changes

added optional paths field to ApiRouteModule so a module can register explicit static routes instead of relying on the filename

Why

routeplanner.ts has no dot in the filename, so it registered as a single static route at /v4/routeplanner instead of the actual paths the handler dispatches on. every call 404s before the handler runs

Checkmarks

  • The modified endpoints have been tested.
  • Used the same indentation as the rest of the project.
  • Still compatible with LavaLink clients.

Additional information

tsc passes

routeplanner.ts has no dot in the filename, so it was getting registered
as a single static route at /v4/routeplanner instead of the actual paths
the handler dispatches on. every request to the route planner api was
404ing before the handler even ran, regardless of your routePlanner config
@1Lucas1apk
1Lucas1apk self-requested a review August 21, 2026 11:38
@1Lucas1apk
1Lucas1apk merged commit 6299f08 into PerformanC:dev Aug 23, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 23, 2026
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.

2 participants