Skip to content

Using a hook.disable() on a service should remove that from the Allow header for REST services #224

@daffl

Description

@daffl

@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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions