cleanup
This commit is contained in:
@@ -43,15 +43,12 @@ func main() {
|
||||
e.Logger.SetLevel(log.DEBUG)
|
||||
e.Use(middleware.Logger())
|
||||
|
||||
boxes := getBoxes()
|
||||
|
||||
e.GET("/health", healthCheck)
|
||||
|
||||
e.Static("/images", "images")
|
||||
e.Static("/css", "css")
|
||||
|
||||
e.GET("/", func(c echo.Context) error {
|
||||
return c.Render(200, "index", newPage(boxes))
|
||||
return c.Render(200, "index", newPage(getBoxes()))
|
||||
})
|
||||
|
||||
e.GET("/ws", initWs)
|
||||
|
||||
Reference in New Issue
Block a user