A behavior I found unexpected is the way API routes match splats without using the normal flat routes syntax for splats.
To match the following routes:
/api
/api/foo
/api/foo/bar
I'd expect to create routes/api.$.ts based on the docs for splat routes, but instead I must create routes/api.ts
Why don't API routes use the normal routing syntax?
A behavior I found unexpected is the way API routes match splats without using the normal flat routes syntax for splats.
To match the following routes:
I'd expect to create
routes/api.$.tsbased on the docs for splat routes, but instead I must createroutes/api.tsWhy don't API routes use the normal routing syntax?