发布于 2017-12-02 05:46:56
可以扩展现有的后缀ES6类如这里所记载的。
const { Service } = require( 'feathers-sequelize');
class MyService extends Service {
setup(app, path) {
this.app = app;
// Do stuff here
}
}
app.use('/todos', new MyService({
paginate: {
default: 2,
max: 4
}
}));https://stackoverflow.com/questions/47572532
复制相似问题