diff options
Diffstat (limited to 'cmd/cashierd/main.go')
-rw-r--r-- | cmd/cashierd/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/cashierd/main.go b/cmd/cashierd/main.go index bc460da..e482dde 100644 --- a/cmd/cashierd/main.go +++ b/cmd/cashierd/main.go @@ -13,6 +13,7 @@ import ( "log" "net/http" "os" + "path" "strings" "time" @@ -221,7 +222,7 @@ func main() { ctx := &appContext{ cookiestore: sessions.NewCookieStore([]byte(config.Server.CookieSecret)), authprovider: authprovider, - views: template.Must(template.ParseGlob("templates/*")), + views: template.Must(template.ParseGlob(path.Join(config.Server.TemplateDir, "*"))), sshKeySigner: signer, } ctx.cookiestore.Options = &sessions.Options{ |