summaryrefslogtreecommitdiff
path: root/src/services/accounts.service.ts
blob: cf22a9bffdb97f8e9d906331fbf340443e0bde34 (plain)
1
2
3
4
5
6
7
8
9
10
import { Application } from '@feathersjs/express';
import service from 'feathers-mongoose';
import Model from '../models/account/account.model';

const Accounts = service({ Model, whitelist: ['$options', '$regex'] });

export default (app: Application): void => {
  app.use('/accounts', Accounts);
};