mirror of
https://github.com/originalmk/skrytka-app.git
synced 2025-01-18 00:09:17 +00:00
Created media directory and hosting it as static
This commit is contained in:
parent
e9ad514166
commit
f504d2d7db
5
app.js
5
app.js
@ -44,9 +44,12 @@ types.setTypeParser(603, function(rectangleStr) {
|
||||
return new Rectangle(lowerBottomPoint, size);
|
||||
});
|
||||
|
||||
// Frontend hosting:
|
||||
// Hosting frontend:
|
||||
app.use(express.static(path.join(__dirname, 'client/build')));
|
||||
|
||||
// Hosting images (trucks etc):
|
||||
app.use(express.static(path.join(__dirname, 'media')));
|
||||
|
||||
app.use(session({
|
||||
store: new (require('connect-pg-simple')(session))({
|
||||
pgPromise: db,
|
||||
|
BIN
media/images/skrytka.png
Normal file
BIN
media/images/skrytka.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 KiB |
Loading…
x
Reference in New Issue
Block a user