Replies: 2 comments 1 reply
-
From func main() {
e := echo.New()
e.Use(middleware.Logger())
e.Use(middleware.Recover())
mux := runtime.NewServeMux()
//...
e.Any("/prefix", echo.WrapHandler(mux)) // all HTTP requests starting with `/prefix` are handled by `grpc-gateway`
e.Logger.Fatal(e.Start(":8080"))
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
this may help |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am not sure that this discussion area is for posting questions that could help others when they migrate to Echo Server. If this posting in inappropriate, please delete it, otherwise, here is my question...
I have code that works with the standard HTTP server in Go, but I cannot figure out how to make it work with Labstack's Echo Server. The following shows the conversion that I cannot get to work properly.
I'd really appreciate your help to figure this out.
Thanks for your interest and time!
STANDARD HTTP SERVER CODE
LABSTACK'S ECHO SERVER
Beta Was this translation helpful? Give feedback.
All reactions