aboutsummaryrefslogtreecommitdiff
path: root/services/votes/votes.hooks.ts
blob: 2e29008207707054800d91db8d3acc2210c5c920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import {
  convertPollHook
} from '../../hooks/convertPoll';

import { authenticate } from '@feathersjs/authentication';

export default {
  before: {
    create: [authenticate('jwt')]
  },
  after: {
    all: [convertPollHook]
  }
};