@sjmcdowall commented on Mon Oct 03 2016
I disabled a bunch of service calls using hooks.disable() in a before hook call with code like:
exports.before = {
all: [],
find: [],
get: [],
create: [hooks.disable()],
update: [hooks.disable()],
patch: [hooks.disable()],
remove: [hooks.disable()]
};
Yet the Allow header still shows all services available:
Allow →GET,POST,PUT,PATCH,DELETE
(From Postman)
I would think that if we use a stock hook.disable() then the associated Allow header component should be removed as well.
@sjmcdowall commented on Mon Oct 03 2016
I disabled a bunch of service calls using hooks.disable() in a before hook call with code like:
Yet the Allow header still shows all services available:
Allow →GET,POST,PUT,PATCH,DELETE
(From Postman)
I would think that if we use a stock hook.disable() then the associated Allow header component should be removed as well.