Add logging
This commit is contained in:
parent
907be875c8
commit
69cb27fc51
@ -33,6 +33,7 @@ func (h *Handler) Serve() {
|
|||||||
|
|
||||||
// LoadRoutes initializes all the routes.
|
// LoadRoutes initializes all the routes.
|
||||||
func (h *Handler) LoadRoutes(router *echo.Echo) {
|
func (h *Handler) LoadRoutes(router *echo.Echo) {
|
||||||
|
router.Use(middleware.Logger())
|
||||||
router.Use(enableCachingForStaticFiles())
|
router.Use(enableCachingForStaticFiles())
|
||||||
router.Use(middleware.StaticWithConfig(middleware.StaticConfig{
|
router.Use(middleware.StaticWithConfig(middleware.StaticConfig{
|
||||||
Filesystem: h.StaticFS,
|
Filesystem: h.StaticFS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user