blob: afb3b9e2094d6ad08eb41dba746979519638a60b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
const service = require('feathers-mongoose');
const Model = require('./user.model.js');
const hooks = require('./user.hooks.js');
const UserService = service({ Model })
module.exports = app => {
app.use('/users', UserService);
app.service('users').hooks(hooks);
};
|