blob: 08c347d1063a18d2e252a66bdad0a35bb1a3d374 (
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 });
export default (app: Application): void => {
app.use('/users', UserService);
app.service('users').hooks(hooks);
};
|