Haskell - Yesod - print route with placeholder

27 views Asked by At

In my Yesod app I have a route defined as

/bookings/#BookingId/review-data BookingReviewDataR GET

I need to pass the route to the frontend of the application in such a way that the frontend could call the endpoint for any user defined BookingId.

Is there something similar to getUrlRender to retrieve from Yesod a string representation of the route with a placeholder instead of a BookingId?

0

There are 0 answers