在 Compojure 中组合路线
我在 Clojure 中使用 Compojure 开发了两个不同的 Web 应用程序。每个都使用 defroutes 来创建其处理程序。
如何将 defroutes 的两种不同定义合并为一个 defroute?我想将第一个应用程序的路由重用到第二个应用程序中。
I have two different web applications in Clojure developed with Compojure. Each use defroutes to create its handler.
How can I combine the two different definitions of defroutes into one defroute? I want to reuse the routes of the first app into the second.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 compojure.core/routes 来组合路由:
You can use compojure.core/routes to combine routes: