Skip to content

URL Wildcards for hook matching #67.#90

Open
suelje wants to merge 1 commit into
cybertk:masterfrom
eXa-online:hook-pattern
Open

URL Wildcards for hook matching #67.#90
suelje wants to merge 1 commit into
cybertk:masterfrom
eXa-online:hook-pattern

Conversation

@suelje

@suelje suelje commented Mar 2, 2016

Copy link
Copy Markdown

We did a small extension to allow for wildcards in hook names. Not sure if it fits all your needs discussed in feature request #67.

Example to follow:

hooks.before('GET /.*/{id} -> 404', function (test, done) {
    test.request.params = {"id": "doesnotexist"};
    done();
});

@cybertk

cybertk commented Jul 27, 2016

Copy link
Copy Markdown
Owner

+1 for this feature.

@cybertk

cybertk commented Aug 2, 2016

Copy link
Copy Markdown
Owner

@suelje It's a cool feature. Could you please help add related documents, then I can merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants