strongloop/loopback - Maintain multiple versions of API
问题 I am using strongloop/loopback for the first time. There is some rudimentary instruction online for versioning an API: var p = require('../package.json'); var version = p.version.split('.').shift(); module.exports = { restApiRoot: '/api' + (version > 0 ? '/v' + version : ''), host: process.env.HOST || 'localhost', port: process.env.PORT || 3000 }; What I don't see, is a recommended way of maintaining multiple versions of an API. So, for example, I could have a legacy 1.4 version and new 2.0