Skip to content

How to use with Gin? #196

Answered by alek-sys
gaetandezeiraud asked this question in Q&A
Discussion options

You must be logged in to vote

You don't need to define your own handler, Gin has a wrapper to use standard net/http compatible handlers (which is what auth provides):

authHandler, _ := s.Handlers()
r := gin.Default()
r.Group("/auth").GET("/*path", gin.WrapH(authHandler))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gaetandezeiraud
Comment options

Answer selected by gaetandezeiraud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants