haskell-servant/servant

Dynamic routing

Open

#634 aberto em 7 de nov. de 2016

Ver no GitHub
 (17 comments) (0 reactions) (0 assignees)Haskell (422 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (1.953 stars)
Métricas de merge de PR
 (Mesclagem média 5h 49m) (2 fundiu PRs em 30d)

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.

Guia do colaborador