mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 07:10:05 +02:00
Adding images as a route to frontend
This commit is contained in:
parent
caef3ca57e
commit
77373ec32d
@ -50,6 +50,18 @@ server.register(plugins, (err) => {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server.route({
|
||||||
|
method: 'GET',
|
||||||
|
path: '/static/images/{param*}',
|
||||||
|
handler: {
|
||||||
|
directory: {
|
||||||
|
path: './images/',
|
||||||
|
redirectToSlash: true,
|
||||||
|
index: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
server.route({
|
server.route({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
path: '/static/{param*}',
|
path: '/static/{param*}',
|
||||||
|
Loading…
Reference in New Issue
Block a user