1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-09 16:42:48 +00:00
Files
go-discord-bot/server/webserver/routes/config.go

16 lines
330 B
Go

package routes
import (
"github.com/gin-gonic/gin"
"github.com/mgerb/go-discord-bot/server/config"
)
// AddConfigRoutes -
func AddConfigRoutes(group *gin.RouterGroup) {
group.GET("/config/client_id", getConfigHandler)
}
func getConfigHandler(c *gin.Context) {
c.JSON(200, map[string]string{"id": config.Config.ClientID})
}