node-restify
node-restify copied to clipboard
Migrating RegExps to new restify's way
Hello! I would like to convert this:
RestServer.post(/^\/v1\/server\/file\/(move|rename)/, (req, res, next) => {
// [...]
return next();
});
to the new version of restify but the docs are misleading about the RegExp drop. What is the new way to do? Thanks.