. :
info: TypeError: fn.bind is not a function
The solution was: It seems that ordinary hooks can be registered in brackets, but this hook should be registered without brackets. findEnemy
exports.before = {
all: [
auth.verifyToken(),
auth.populateUser(),
auth.restrictToAuthenticated()],
find: [],
get: [],
create: [findEnemy],
update: [],
patch: [],
remove: []
};
findEnemy () does not work. Perhaps others are facing the same issue. Can someone explain why?
source
share