From b8bf96d55fe586c9d98e3707e61800a0c3359a3f Mon Sep 17 00:00:00 2001 From: fang Date: Sat, 2 Jan 2021 13:44:13 +0100 Subject: [PATCH] file-server: inline docs for actions --- pkg/arvo/sur/file-server.hoon | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/pkg/arvo/sur/file-server.hoon b/pkg/arvo/sur/file-server.hoon index b2565d12e6..0740b2b4d7 100644 --- a/pkg/arvo/sur/file-server.hoon +++ b/pkg/arvo/sur/file-server.hoon @@ -1,10 +1,29 @@ /- glob |% +$ action - $% [%serve-dir url-base=path clay-base=path public=? spa=?] + $% :: %serve-dir: from clay directory + :: + :: url-base site path to route from + :: clay-base clay path to route to + :: public if false, require login + :: spa if true, `404` becomes `clay-base/index.html` + :: + [%serve-dir url-base=path clay-base=path public=? spa=?] + :: %serve-glob: from glob blobs + :: + :: url-base site path to route from + :: glob blobs + :: public if false, require login + :: [%serve-glob url-base=path =glob:glob public=?] + :: %unserve-dir: remove binding on url-base + :: [%unserve-dir url-base=path] + :: %toggle-permission: toggle public flag on url-base + :: [%toggle-permission url-base=path] + :: %set-landscape-homepage-prefix: serve landscape at / or /term + :: [%set-landscape-homepage-prefix prefix=(unit term)] == ::