semuthitamku commited on
Commit
9ba2bef
·
verified ·
1 Parent(s): 00e34d2

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -0
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 = {}