We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation on How to integrate ngrok with Gin and Echo frameworks would be helpful.
The text was updated successfully, but these errors were encountered:
I guess this will do for gin.
func run(ctx context.Context) error { l, err := ngrok.Listen(ctx, config.HTTPEndpoint(), ngrok.WithAuthtokenFromEnv(), ) if err != nil { return err } fmt.Println("Listening at ", l.Addr()) handler := gin.New() handler.GET("/ping", func(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ "message": "Pong", }) }) return http.Serve(l, handler) }
Sorry, something went wrong.
No branches or pull requests
Documentation on How to integrate ngrok with Gin and Echo frameworks would be helpful.
The text was updated successfully, but these errors were encountered: