1
0
mirror of synced 2024-11-22 04:26:01 +03:00

Merge pull request #28 from DmitryZagorulko/master

Support POST request for the configuration page
This commit is contained in:
Alex Lushpai 2018-08-24 15:00:07 +03:00 committed by GitHub
commit 0a27d33a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ func setup() *gin.Engine {
r.Use(ErrorHandler(errorHandlers...)) r.Use(ErrorHandler(errorHandlers...))
r.GET("/", checkAccountForRequest(), connectHandler) r.GET("/", checkAccountForRequest(), connectHandler)
r.GET("/settings/:uid", settingsHandler) r.Any("/settings/:uid", settingsHandler)
r.POST("/save/", checkConnectionForRequest(), saveHandler) r.POST("/save/", checkConnectionForRequest(), saveHandler)
r.POST("/create/", checkConnectionForRequest(), createHandler) r.POST("/create/", checkConnectionForRequest(), createHandler)
r.POST("/add-bot/", checkBotForRequest(), addBotHandler) r.POST("/add-bot/", checkBotForRequest(), addBotHandler)