You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/server/oauth2/init.go

20 lines
329 B
Go

package auth
import "github.com/gin-gonic/gin"
func Init(e *gin.Engine) {
{
auth := e.Group("/oauth2")
auth.GET("/enabled", OAuth2EnabledApi)
auth.GET("/login/:type", OAuth2)
auth.POST("/login/:type", OAuth2Api)
auth.GET("/callback/:type", OAuth2Callback)
auth.POST("/callback/:type", OAuth2CallbackApi)
}
}