joyent-portal/spikes/graphs-topology/d3/server/routes/home.js
2017-02-06 16:11:01 +00:00

12 lines
230 B
JavaScript

const path = require('path');
module.exports = (server) => {
server.route({
method: 'GET',
path: '/',
handler: (request, reply) => {
reply.file(path.join(__dirname, '../../static/index.html'));
}
});
};