-
| Hi! i have a library which provides me with  Thanks | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
| There is  Lines 888 to 894 in 82a964c Here is example with it: https://echo.labstack.com/cookbook/embed-resources/ | 
Beta Was this translation helpful? Give feedback.
-
| @aldas Hi! I tried using  This is the function that returns the handlers https://github.com/go-pkgz/auth/blob/dc03f5df7e6adec282432ed77fc77dae9617f013/auth.go#L149-L218 My server code: func main() {
	e := echo.New()
	// auth initalization stuff here
	authRoutes, avaRoutes := authService.Handlers()
	// Middlewares
	e.Use(middleware.Recover())
	e.Use(middleware.CORS())
	e.Use(middleware.Secure())
	// Routes
	e.GET("/auth", echo.WrapHandler(authRoutes))
	e.GET("/avatar", echo.WrapHandler(avaRoutes))
	// Start server
	if err := e.Start(":8080"); err != http.ErrServerClosed {
		log.Fatal(err)
	}
} | 
Beta Was this translation helpful? Give feedback.
There is
echo.WrapHandlerthat you can use to wraphttp.Handlerinto handlerecho/echo.go
Lines 888 to 894 in 82a964c
Here is example with it: https://echo.labstack.com/cookbook/embed-resources/