haskell-servant/servant

Dynamic routing

Open

#634 geöffnet am 7. Nov. 2016

Auf GitHub ansehen
 (17 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Haskell (422 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (1.953 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5h 49m) (2 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide