1
0
mirror of https://github.com/yldio/copilot.git synced 2024-09-21 22:03:54 +03:00
copilot/spikes/architecture/react-d3/server/routes/home.js
Tom Gallacher 9d3903a1db Implement d3 avg rendering in react
This is an initial implement that at the moment constructs the required
SVG layout to be used by D3.
2016-12-02 11:02:58 +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'));
}
});
};