express-fileserver
v0.3.4
Published
Check in example folder.
Downloads
6
Readme
express-fileserver
Usage
const fileserver = require('express-fileserver')
app.use('/fileserver', fileserver('./downloads/'))
Then you can (from client) access files in ./downloads/ directory:
- get http://your.server.name/fileserver/file?path=...
- post http://your.server.name/fileserver/file?path=...
- delete http://your.server.name/fileserver/file?path=...
- get http://your.server.name/fileserver/directory?path=...
- post http://your.server.name/fileserver/directory?path=...
- delete http://your.server.name/fileserver/directory?path=...
- get http://your.server.name/fileserver/zip?path=... (file or dir)
Example
Check in example folder.