Skip to content

Commit

Permalink
refactor after the bug fix related to reading template/static from fi…
Browse files Browse the repository at this point in the history
…lesystem
  • Loading branch information
quaintdev committed Mar 22, 2023
1 parent 6c1e9ee commit 1d9321a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ func main() {
log.Fatalf("unveil: %s", err)
}

if c.Dirs.Templates == "" {
routes.TmplFiles = &tmplFiles
}
if c.Dirs.Static == "" {
routes.StaticFiles = &staticFiles
}
routes.TmplFiles = &tmplFiles
routes.StaticFiles = &staticFiles

mux := routes.Handlers(c)
addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port)
Expand Down

0 comments on commit 1d9321a

Please sign in to comment.