Merge pull request #28 from DmitryZagorulko/master
Support POST request for the configuration page
This commit is contained in:
commit
0a27d33a31
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user