Skip to content

fix(api): route ordering — literal paths before param paths#151

Merged
656d696c65 merged 1 commit into
mainfrom
v1.3.12-dev
Jul 9, 2026
Merged

fix(api): route ordering — literal paths before param paths#151
656d696c65 merged 1 commit into
mainfrom
v1.3.12-dev

Conversation

@656d696c65

Copy link
Copy Markdown
Member
  • entries: entryLinesRoutes (.../entries/lines) registered before (.../entries/:idEntry) so requests to /entries/lines are not greedily caught by /entries/:idEntry with idEntry='lines'
  • computations: computationIncomeStatementsRoutes (.../computations/income-statements) registered before readOneComputationRoute (.../computations/:idComputation) for the same reason

- entries: entryLinesRoutes (.../entries/lines) registered before
   (.../entries/:idEntry) so requests to /entries/lines
  are not greedily caught by /entries/:idEntry with idEntry='lines'
- computations: computationIncomeStatementsRoutes (.../computations/income-statements)
  registered before readOneComputationRoute (.../computations/:idComputation)
  for the same reason
@656d696c65 656d696c65 merged commit 375bad9 into main Jul 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant