node-restify icon indicating copy to clipboard operation
node-restify copied to clipboard

Migrating RegExps to new restify's way

Open ArnaudLier opened this issue 5 years ago • 0 comments

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.

ArnaudLier avatar Nov 18 '20 19:11 ArnaudLier