haskell-servant/servant

Dynamic routing

Open

#634 创建于 2016年11月7日

在 GitHub 查看
 (17 评论) (0 反应) (0 负责人)Haskell (422 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (1,953 star)
PR 合并指标
 (平均合并 5小时 49分钟) (30 天内合并 2 个 PR)

描述

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.

贡献者指南