【发布时间】:2012-04-26 12:49:34
【问题描述】:
我在http://towerjs.org/screencasts 之后创建了一个示例应用程序。
我已经使用 npm 安装了所有的 deps,并且我还启动并运行了一个本地 mongodb 实例。
无论如何,我尝试访问的每个网址都喜欢
http://localhost:3000/posts/
http://localhost:3000/posts/index
...
我明白了
No path matches /posts/
No path matches /posts/index
...
这里是我的来源: http://dl.dropbox.com/u/50740523/tower-app.zip
问候, 贾科莫
【问题讨论】:
-
这看起来像一个错误,请将其发布在 github 问题页面上:github.com/viatropos/tower/issues。这是 b/c 路线可能没有处理尾随
/。/posts/index不是路线。这应该有效:http://localhost:3000/posts。会修复的。 -
我已经在 github.com 上发布了这个问题。我还做了一个删除尾随
/的测试,但路由不能“挂钩”控制器...
标签: url frameworks web routes towerjs