aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2021-10-31 19:23:13 +0000
committerGitHub <noreply@github.com>2021-10-31 19:23:13 +0000
commit62c26cd809a156aa1b20f53f29534a09b38b3496 (patch)
treeaea9554faba28fdc64dd1f8183c15e521a126815 /README.md
parentAdd --locked to install instructions (diff)
downloadminiserve-62c26cd809a156aa1b20f53f29534a09b38b3496.tar.gz
miniserve-62c26cd809a156aa1b20f53f29534a09b38b3496.zip
Document --index and --spa
Diffstat (limited to '')
-rw-r--r--README.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 17b5f11..dc95a3b 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,14 @@ Sometimes this is just a more practical and quick way than doing things properly
### Serve a single file:
miniserve linux-distro.iso
+
+### Set a custom index file to serve instead of a file listing:
+
+ miniserve --index test.html
+
+### Serve an SPA (Single Page Application) so that non-existent paths are forwarded to the SPA's router instead
+
+ miniserve --spa --index index.html
### Require username/password: