aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-12-17 23:46:04 +0000
committers-ol <s-ol@users.noreply.github.com>2019-12-17 23:47:57 +0000
commita4038511560d408827cdea7e2e99751496687181 (patch)
tree3720c9e29613aa7ec3ef9aee20fad2d827f7bad7 /build
parentadd sidenote support (diff)
downloadmmm-a4038511560d408827cdea7e2e99751496687181.tar.gz
mmm-a4038511560d408827cdea7e2e99751496687181.zip
cites plugin
Diffstat (limited to 'build')
-rw-r--r--build/server.moon6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/server.moon b/build/server.moon
index b95b396..7c0ff46 100644
--- a/build/server.moon
+++ b/build/server.moon
@@ -99,7 +99,11 @@ class Server
switch method
when 'GET', 'HEAD'
- fileder = Fileder @store, path
+ root = Fileder @store
+ export BROWSER
+ BROWSER = :root
+ fileder = root\walk path -- Fileder @store, path
+
if not fileder
-- fileder not found
return 404, "fileder '#{path}' not found"