diff options
author | zak <e-zk@users.noreply.github.com> | 2022-12-22 00:17:33 +1000 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-22 11:17:59 +0530 |
commit | 4aa8cbff320b669fc07f356409b05d6b1795c342 (patch) | |
tree | 71b02d6bc99ba805d728b28d70023573233ce7a4 /main.go | |
parent | d0f5d874c58abac60bd9145eb98c0305047c9d0f (diff) | |
download | legit-4aa8cbff320b669fc07f356409b05d6b1795c342.tar.gz legit-4aa8cbff320b669fc07f356409b05d6b1795c342.tar.bz2 legit-4aa8cbff320b669fc07f356409b05d6b1795c342.zip |
unveil: initial commit
Diffstat (limited to '')
-rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |