Skip to content

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.

2 participants