goweb/route/oauth2.go
2021-08-22 17:23:04 +08:00

15 lines
299 B
Go

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)
}