blob: 77eb9fd331d98eb269cbaca9348c5687b51c9a34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { Application } from '@feathersjs/express';
import service from 'feathers-mongoose';
import Model from '../../models/users/user.model';
import hooks from './users.hooks';
const UserService = service({ Model, whitelist: ['$options', '$regex'] });
export default (app: Application): void => {
app.use('/users', UserService);
app.service('users').hooks(hooks);
};
|