Fix issues from golangci
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user