Closed tsghosh closed 7 years ago
Hi @tsghosh ,
Yes, it is possible. You can use the exact same interface as the restify server.
const sme = new Router();
sme.get('/country/:country/state/:state/city/:city', validator, function(req, res, next) {
});
sme.applyRoutes(server);
Thanks.
I am trying to add a validation using joi like this
sme.get('/country/:country/state/:state/city/:city',validator, function(req, res, next) { })
Can you please comment if it is possible to use joi adaptor like restify-joi-middleware with restify-router
thanks tuhin