jmms
Version:
Jmms cli tools, Jmms is a java meta-micro-service framework
25 lines (18 loc) • 520 B
JavaScript
const app = require('../app');
const o = {
rounds: undefined,
options: undefined,
testUrl: undefined,
swaggerUrl: undefined,
init: (opts) => {
o.options = opts;
if(app.exists()) {
o.swaggerUrl = app.api.baseUrl + '/swagger.json';
o.testUrl = app.api.baseUrl + '/$test';
}else {
o.swaggerUrl = 'http://localhost:8080/swagger.json';
o.testUrl = 'http://localhost:8080/$test';
}
}
}
module.exports = o;