9d3903a1db
This is an initial implement that at the moment constructs the required SVG layout to be used by D3.
19 lines
350 B
JavaScript
19 lines
350 B
JavaScript
const Pkg = require('../../package.json');
|
|
|
|
const internals = {
|
|
response: {
|
|
version: Pkg.version
|
|
}
|
|
};
|
|
|
|
module.exports = (server) => {
|
|
server.route({
|
|
method: 'GET',
|
|
path: '/ops/version',
|
|
config: {
|
|
description: 'Returns the version of the server',
|
|
handler: (request, reply) => reply(internals.response)
|
|
}
|
|
});
|
|
};
|