all repos — elgit @ 4aa8cbff320b669fc07f356409b05d6b1795c342

fork of legit: web frontend for git, written in go

unveil: initial commit

zak
commit

4aa8cbff320b669fc07f356409b05d6b1795c342

parent

d0f5d874c58abac60bd9145eb98c0305047c9d0f

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M main.gomain.go
@@ -20,9 +20,9 @@ if err != nil {
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)