Fix issues from golangci

This commit is contained in:
2022-02-15 11:52:06 +00:00
parent 835a15ec08
commit 38dfa540b4
5 changed files with 33 additions and 70 deletions

View File

@@ -24,15 +24,14 @@ type Handler struct {
StaticFS http.FileSystem
}
const (
expiration = 72
)
// Serve starts the http server
func (h *Handler) Serve() {
router := gin.Default()
h.LoadRoutes(router)
router.Run(":1323")
err := router.Run(":1323")
if err != nil {
panic(err)
}
}
// LoadRoutes initializes all the routes