mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 01:22:48 +00:00
back end done for video archiving
This commit is contained in:
15
server/webserver/routes/config.go
Normal file
15
server/webserver/routes/config.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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", getClientIDHandler)
|
||||
}
|
||||
|
||||
func getClientIDHandler(c *gin.Context) {
|
||||
c.JSON(200, map[string]string{"id": config.Config.ClientID})
|
||||
}
|
||||
Reference in New Issue
Block a user