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.

貢獻者指南