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
237 B
Go
14 lines
237 B
Go
2 years ago
|
package auth
|
||
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
"github.com/synctv-org/synctv/internal/conf"
|
||
|
"golang.org/x/exp/maps"
|
||
|
)
|
||
|
|
||
|
func OAuth2EnabledApi(ctx *gin.Context) {
|
||
|
ctx.JSON(200, gin.H{
|
||
|
"enabled": maps.Keys(conf.Conf.OAuth2),
|
||
|
})
|
||
|
}
|