haskell-servant/servant

Dynamic routing

Open

#634 ouverte le 7 nov. 2016

Voir sur GitHub
 (17 commentaires) (0 réactions) (0 assignés)Haskell (422 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (1 953 stars)
Métriques de merge PR
 (Merge moyen 5h 49m) (2 PRs mergées en 30 j)

Description

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.

Guide contributeur