【发布时间】:2013-10-31 06:16:33
【问题描述】:
我是表达js的新手。有没有办法配置应用程序以支持 url 不同点的过滤器。让我的问题更清楚
假设我有
app.get('/path1/*' , function1)
app.get('/path1/path2/*' , function2)
app.get('/path1/path2/path3/*' , function3)
当我说 http://mydomain.com/path1/path2/path3/path4 GET 时,
我需要按顺序执行函数1、函数2、函数3。
有什么方法可以实现吗? 提前致谢。
【问题讨论】:
标签: node.js express url-routing