//做一个node的小练习,想使用一下resourceful route,express-resource会用;但是express-resource-new怎么用呢?
//具体是:
Resource = require(‘express-resource-new’);
//引入了这个模块之后,下面这段是嘛意思呢?
app.resource('articles’, function() {
app.resource('comments’, { id: ‘id’ }); // You can also call this.resource('comments')
});