Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -29,6 +29,9 @@ app.use((req, res, next) => {
|
|
| 29 |
next()
|
| 30 |
})
|
| 31 |
|
|
|
|
|
|
|
|
|
|
| 32 |
app.all('/', (_, res) => {
|
| 33 |
const formatSize = (n) => bytes(+n, { unitSeparator: ' ' })
|
| 34 |
const status = {}
|
|
|
|
| 29 |
next()
|
| 30 |
})
|
| 31 |
|
| 32 |
+
app.use('/file', express.static('/tmp'))
|
| 33 |
+
|
| 34 |
+
|
| 35 |
app.all('/', (_, res) => {
|
| 36 |
const formatSize = (n) => bytes(+n, { unitSeparator: ' ' })
|
| 37 |
const status = {}
|