package route import ( gs "gitee.ltd/go-oauth2/gin-server" "github.com/gin-gonic/gin" "goweb/initialization" ) // 初始化OAuth2相关接口 func initOAuth2Route(r *gin.RouterGroup) { initialization.CreateOAuth2Server() auth := r.Group("/oauth") auth.GET("/token", gs.HandleTokenRequest) }