updated token storage
This commit is contained in:
@@ -15,7 +15,7 @@ func Run() {
|
||||
private := r.Group("/")
|
||||
private.Use(userIsAuthorized)
|
||||
|
||||
private.POST("/user", user) //change username/password (required before adding bots)
|
||||
private.PATCH("/login", user) //change username/password (required before adding bots)
|
||||
|
||||
private.GET("/bots", func(c *gin.Context) {}) //generalized list of bots
|
||||
private.GET("/bot/:bot", func(c *gin.Context) {}) //specific bot
|
||||
|
||||
@@ -13,6 +13,7 @@ type LoginBody struct {
|
||||
}
|
||||
|
||||
func login(c *gin.Context) {
|
||||
|
||||
var loginBody LoginBody
|
||||
if err := c.BindJSON(&loginBody); err != nil {
|
||||
fmt.Println(err)
|
||||
|
||||
Reference in New Issue
Block a user