Description
What are you building with SQLPage ?
I am building a simple accounting platform.
What is your problem ? A description of the problem, not the solution you are proposing.
I'd like to have routes that go /app/:serviceId/
, /app/:serviceId/ledger
, /app/:serviceId/ledger/:accountId/info
.
What are you currently doing ? Since your solution is not implemented in SQLPage currently, what are you doing instead ?
I am using query parameters, but it is quickly becoming a bit messy.
Describe the solution you'd like
There are already a tonne of filesystem routers to take inspiration from, for example:
Most of them use folders and files with [paramter-name] to add route parameters.
Describe alternatives you've considered
As mentioned, search parameters work but become a bit ugly after a while, especially since it is not possible to use relative urls to simplify links.
Route parameters would also allow someone to build a (almost) proper REST-api which would be kind of cool.