haskell-servant/servant

Dynamic routing

Open

#634 aperta il 7 nov 2016

Vedi su GitHub
 (17 commenti) (0 reazioni) (0 assegnatari)Haskell (422 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (1953 star)
Metriche merge PR
 (Merge medio 5h 49m) (2 PR mergiate in 30 g)

Descrizione

Is there a way (currently) to build a dynamic route at runtime out of static routes? I'm imagining a simple use case where you want to serve the same API with different URL roots, say /production/api/... and /test/api. You could parameterize your server on top-level path and server the API from there. But I can't think of a way to dynamically build a route.

Guida contributor