mirror of https://github.com/synctv-org/synctv
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.
14 lines
196 B
Go
14 lines
196 B
Go
1 year ago
|
package auth
|
||
|
|
||
|
import "github.com/gin-gonic/gin"
|
||
|
|
||
|
func Init(e *gin.Engine) {
|
||
|
{
|
||
|
auth := e.Group("/oauth2")
|
||
|
|
||
|
auth.GET("/login/:type", OAuth2)
|
||
|
|
||
|
auth.GET("/callback/:type", OAuth2Callback)
|
||
|
}
|
||
|
}
|