summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorLibravatar zak <e-zk@users.noreply.github.com>2022-12-22 00:17:33 +1000
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-22 11:17:59 +0530
commit4aa8cbff320b669fc07f356409b05d6b1795c342 (patch)
tree71b02d6bc99ba805d728b28d70023573233ce7a4 /main.go
parentd0f5d874c58abac60bd9145eb98c0305047c9d0f (diff)
downloadlegit-4aa8cbff320b669fc07f356409b05d6b1795c342.tar.gz
legit-4aa8cbff320b669fc07f356409b05d6b1795c342.tar.bz2
legit-4aa8cbff320b669fc07f356409b05d6b1795c342.zip
unveil: initial commit
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 942b9de..2bccd33 100644
--- a/main.go
+++ b/main.go
@@ -20,9 +20,9 @@ func main() {
log.Fatal(err)
}
- // for path := range []string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates} {
- // Unveil(path, "r")
- // }
+ if err = UnveilPaths([]string{c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates}, "r"); err != nil {
+ log.Fatal(err)
+ }
mux := routes.Handlers(c)
addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port)