### With docker
```
-docker run -v `pwd`:/data -p 5000:5000 --rm -it sigoden/dufs /data
+docker run -v `pwd`:/data -p 5000:5000 --rm -it sigoden/dufs /data -A
```
### Binaries on macOS, Linux, Windows
dufs
```
-Explicitly allow all operations including download/upload/delete
+Allow all operations like upload/delete/search...
```
dufs -A
dufs Downloads
```
-Serve a specific file
+Serve a single file
```
dufs linux-distro.iso
```
-Serve index.html when requesting a directory
+Serve a single-page application like react/vue
```
-dufs --render-index
+dufs --render-spa
```
-Serve single-page application like react
+Serve a static website with index.html
```
-dufs --render-spa
+dufs --render-index
```
Require username/password
## API
+Upload a file
+
+```
+curl -T path-to-file http://127.0.0.1:5000/new-path/path-to-file
+```
+
Download a file
```
curl http://127.0.0.1:5000/path-to-file
curl -o path-to-folder.zip http://127.0.0.1:5000/path-to-folder?zip
```
-Upload a file
-
-```
-curl --upload-file path-to-file http://127.0.0.1:5000/path-to-file
-```
-
Delete a file/folder
```
-curl -X DELETE http://127.0.0.1:5000/path-to-file
+curl -X DELETE http://127.0.0.1:5000/path-to-file-or-folder
```
## Access Control