Skip to content

Commit

Permalink
restrict to html
Browse files Browse the repository at this point in the history
  • Loading branch information
wistefan committed Dec 12, 2023
1 parent 863b1f9 commit 0d9c66c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ func main() {

templateDir := configuration.Server.TemplateDir
if strings.HasSuffix(templateDir, "/") {
templateDir = templateDir + "*"
templateDir = templateDir + "*.html"
} else {
templateDir = templateDir + "/*"
templateDir = templateDir + "/*.html"
}

logging.Log().Infof("Intialize templates from %s", templateDir)
//router.LoadHTMLGlob(templateDir)
router.LoadHTMLGlob(templateDir)

// initiate metrics
metrics := ginmetrics.GetMonitor()
Expand Down

0 comments on commit 0d9c66c

Please sign in to comment.