Added static img folder for directly serving images

This commit is contained in:
Nicolai Ort 2023-03-15 14:01:49 +01:00
parent cbda10e2a1
commit 0dbd7311ab
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
3 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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;
};

0
src/static/img/.gitkeep Normal file
View File