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:
parent
caef3ca57e
commit
77373ec32d
@ -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*}',
|
||||
|
Loading…
Reference in New Issue
Block a user