mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-10 09:02:49 +00:00
fetch client id from server for oauth
This commit is contained in:
@@ -30,6 +30,7 @@ func getRouter() *gin.Engine {
|
||||
api.POST("/oauth", handlers.Oauth)
|
||||
api.GET("/logger/messages", handlers.GetMessages)
|
||||
api.GET("/logger/linkedmessages", handlers.GetLinkedMessages)
|
||||
api.GET("/config/client_id", handlers.GetClientID)
|
||||
|
||||
authorizedAPI := router.Group("/api")
|
||||
authorizedAPI.Use(middleware.AuthorizedJWT())
|
||||
|
||||
Reference in New Issue
Block a user