Add logging

This commit is contained in:
Jan Bader 2024-01-29 22:24:51 +01:00
parent 907be875c8
commit 69cb27fc51

View File

@ -33,6 +33,7 @@ func (h *Handler) Serve() {
// LoadRoutes initializes all the routes.
func (h *Handler) LoadRoutes(router *echo.Echo) {
router.Use(middleware.Logger())
router.Use(enableCachingForStaticFiles())
router.Use(middleware.StaticWithConfig(middleware.StaticConfig{
Filesystem: h.StaticFS,