Skip to content

URL Wildcards for hook matching #67.#90

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

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

Conversation

@suelje
Copy link
Copy Markdown

@suelje suelje commented Mar 2, 2016

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
Copy link
Copy Markdown
Owner

cybertk commented Jul 27, 2016

+1 for this feature.

@cybertk
Copy link
Copy Markdown
Owner

cybertk commented Aug 2, 2016

@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