Skip to content

Add option to configure validation middleware.#53

Open
sleistner wants to merge 4 commits intojivesoftware:masterfrom
sleistner:master
Open

Add option to configure validation middleware.#53
sleistner wants to merge 4 commits intojivesoftware:masterfrom
sleistner:master

Conversation

@sleistner
Copy link

This branch adds support to configure validation middleware at route specification level.

exports.create = {

    jiveLocked: true,
    path: 'levels',
    verb: 'post',

    validate: function (req, res, next) {
        [...]
    },

    route: function (req, res) {
        [...]
    }
};

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.

1 participant