【问题标题】:Using both: Flow Router and Iron Router (Meteor)同时使用:Flow Router 和 Iron Router (Meteor)
【发布时间】:2016-10-31 11:32:55
【问题描述】:

有人同时使用它们吗?我需要 IronRouter 用于服务器端、RestApi 和我之前使用的 Flow Router,所以我可以摆脱它,但我不想要。 但是我现在不喜欢 Iron Router 的这个 sh 用于我的每个 Flow Router 页面。

Oops, looks like there's no route on the client or the server for url: "http://localhost:3000/." 

如何不显示。

【问题讨论】:

    标签: rest meteor iron-router flow-router


    【解决方案1】:

    由于您已经熟悉 FlowRoute 并希望为您的 API 路由server side,您可以使用Picker。来自FlowRouter 的同一作者。因此,与 flowrouter 一起使用应该没有问题。而且它也很容易使用。

    https://github.com/meteorhacks/picker
    

    【讨论】:

    • 谢谢,找不到更好的解决方案。确实像你说的那样,选择器工作正常,但它也需要安装 body-parser
    • 但我遇到了新问题。当我在本地使用它时,很容易通过 npm 命令安装 body-parser。但是当我部署到 modules.io 时,没有安装 body-parser
    • 与他们的支持团队交谈。
    猜你喜欢
    • 2017-06-17
    • 2023-03-12
    • 2014-05-07
    • 2023-03-30
    • 2013-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-06
    相关资源
    最近更新 更多