Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL Wildcards for hook matching #67. #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

suelje
Copy link
Contributor

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

cybertk commented Jul 27, 2016

+1 for this feature.

@cybertk
Copy link
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.

None yet

2 participants