is it possible to do dynamic routes in apps?
# developers
j
is it possible to do dynamic routes in apps?
p
can you explain your usecase?
not sure what you mean, yet
j
I figured it out. I used express in the app to improve the routing
Just wanted dynamic parameters and like better middleware support for a more sophisticated API
h
btw @Peer, If calcom is using trpc, Why are api routes being used. (
pages/api/**.ts
)
p
those are not mutually exclusive tho i am no trpc expert cc @zomars @Alex / KATT
j
It seems like next requests are missing Paramus
Params
That's the only part that's kinda weird
Any ideas on how to support params in App Store routing
p
@Jimmy Chan can you do me a favor and instead open a discussion in github with a more structured request? https://github.com/calcom/cal.com/discussions i have a hard time understanding if this is a bug report or feature request
h
@Peer Indeed, they are not mutually exclusive. Just that, api routes are not taking advantage of trpc. Will wait for replies by the tagged persons 🙂
z
@Hussam Khatib those api routes are basically pre-trpc legacy
h
I thought so, thanks for clarifying.
z
We planning to get rid of those now that ttpc has it's own monorepo package. As always PRs are welcome 🙏
p
just opened a ticket for it if anyone wants to contribute: https://github.com/calcom/cal.com/issues/3573
h
Cool , I have requested to assign me.
z
I don't think we should assign to one person only, we could assign individual endpoints tho. I'm making a list