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

Support POST request for the configuration page

This commit is contained in:
DmitryZagorulko 2018-08-24 14:57:57 +03:00
parent 18a3d05357
commit 386cbcaafa

View File

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