Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async info() {
const server: RestServer = await this.getServer(RestServer);
const port: Number = await server.get(RestBindings.PORT);
return {
uptime: Date.now() - this._startTime.getTime(),
// TODO(bajtos) move this code to Application, the URL should
// be accessible via this.get('http.url')
url: 'http://127.0.0.1:' + port,
};
}
}
async function info() {
const rest = await app.getServer(RestServer);
const port = await rest.get(RestBindings.PORT);
return {
appName: 'transcation',
uptime: Date.now() - app._startTime.getTime(),
url: `http://127.0.0.1:${port}`,
};
}
}
async function info() {
const rest = await app.getServer(RestServer);
const port = await rest.get(RestBindings.PORT);
return {
appName: 'customer',
uptime: Date.now() - app._startTime.getTime(),
url: `http://127.0.0.1:${port}`,
};
}
}
async info() {
const rest = await this.getServer(RestServer);
const port: Number = await rest.get(RestBindings.PORT);
return {
appName: 'account',
uptime: Date.now() - this._startTime.getTime(),
url: `http://127.0.0.1:${port}`,
};
}
}
server.then(s => {
s.api({
swagger: '2.0',
info: {
title: 'CodeHub',
version: require('../package.json').version,
},
basePath: '/',
paths: {},
});
s.bind(RestBindings.PORT).to(3000);
});
async function info() {
const rest = await app.getServer(RestServer);
const port = await rest.get(RestBindings.PORT);
return {
appName: 'facade',
uptime: Date.now() - app._startTime.getTime(),
url: `http://127.0.0.1:${port}`,
};
}
}
async function info() {
const rest = await app.getServer(RestServer);
const port = await rest.get(RestBindings.PORT);
return {
appName: 'account',
uptime: Date.now() - app._startTime.getTime(),
url: `http://127.0.0.1:${port}`,
};
}
}