summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)