aboutsummaryrefslogtreecommitdiff
path: root/services/votes/votes.hooks.ts
blob: a41b8a9e1747dd066cbe456d7bec034166d9048c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { authenticate } from '@feathersjs/authentication';
import convertPoll from '../../hooks/convertPoll';

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