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