@xrengine/server-core
Version:
Shared components for XREngine server
38 lines (32 loc) • 722 B
text/typescript
import { disallow } from 'feathers-hooks-common'
import linkMatchUserToMatch from '@xrengine/server-core/src/hooks/matchmaking-link-match-user-to-match'
// Don't remove this comment. It's needed to format import lines nicely.
export default {
before: {
all: [],
find: [],
get: [],
create: [disallow()],
update: [disallow()],
patch: [disallow()],
remove: [disallow()]
},
after: {
all: [],
find: [],
get: [linkMatchUserToMatch()], // createLocationIfNotExists - is side effect...
create: [],
update: [],
patch: [],
remove: []
},
error: {
all: [],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: []
}
} as any