Added static img folder for directly serving images
This commit is contained in:
parent
cbda10e2a1
commit
0dbd7311ab
|
@ -5,6 +5,8 @@ services:
|
|||
build: .
|
||||
ports:
|
||||
- 4010:4010
|
||||
# volumes:
|
||||
# - ./lelelelele.pdf:/app/app/static/img/lelelelele.pdf
|
||||
environment:
|
||||
APP_PORT: 4010
|
||||
NODE_ENV: production
|
||||
|
|
|
@ -20,5 +20,6 @@ export default async (app: Application) => {
|
|||
res.json(spec);
|
||||
});
|
||||
app.use('/docs', express.static(path.join(__dirname, '../static/docs'), { index: "index.html", extensions: ['html'] }));
|
||||
app.use('/img', express.static(path.join(__dirname, '../static/img')));
|
||||
return app;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue