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

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