1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

Adding images as a route to frontend

This commit is contained in:
Tom Gallacher 2017-01-18 15:33:32 +00:00
parent caef3ca57e
commit 77373ec32d

View File

@ -50,6 +50,18 @@ server.register(plugins, (err) => {
process.exit(1);
}
server.route({
method: 'GET',
path: '/static/images/{param*}',
handler: {
directory: {
path: './images/',
redirectToSlash: true,
index: false
}
}
});
server.route({
method: 'GET',
path: '/static/{param*}',