diff options
author | eug-vs <eug-vs@keemail.me> | 2020-07-05 13:33:00 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-07-05 13:34:41 +0300 |
commit | 85b3cc20e8f453868d06d55a688ee8dfe90b80d4 (patch) | |
tree | d0af5a84e190a0b80d48c8456771b8cb7e0f5ca4 /services/votes | |
parent | 8f48be5b879b1ae92937dfa1d1f37f08fb167dfa (diff) | |
download | which-api-85b3cc20e8f453868d06d55a688ee8dfe90b80d4.tar.gz |
feat: protect all services
Diffstat (limited to 'services/votes')
-rw-r--r-- | services/votes/votes.hooks.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/votes/votes.hooks.ts b/services/votes/votes.hooks.ts index 56e9000..923e897 100644 --- a/services/votes/votes.hooks.ts +++ b/services/votes/votes.hooks.ts @@ -1,9 +1,13 @@ +import { disallow } from 'feathers-hooks-common'; import requireAuth from '../../hooks/requireAuth'; import signAuthority from '../../hooks/signAuthority'; export default { before: { - create: [requireAuth, signAuthority] + create: [requireAuth, signAuthority], + remove: disallow('external'), + update: disallow('external'), + patch: disallow('external') } }; |