app.use(expressApiVersioning({
apiPath: path.join(__dirname, './api'),
test: //api/(v[0-9]+).*/,
entryPoint: 'index.js',
instance: null
}, (error, req, res, next) => {
console.log(error);
next();
}));
^
TypeError: expressApiVersioning is not a function
app.use(expressApiVersioning({
apiPath: path.join(__dirname, './api'),
test: //api/(v[0-9]+).*/,
entryPoint: 'index.js',
instance: null
}, (error, req, res, next) => {
console.log(error);
next();
}));
^
TypeError: expressApiVersioning is not a function