hello world
This commit is contained in:
18
endpoints/user.go
Normal file
18
endpoints/user.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package endpoints
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.zomo.dev/zomo/discord-retokenizer/storage"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func user(c *gin.Context) {
|
||||
var updateLogin LoginBody
|
||||
if err := c.BindJSON(&updateLogin); err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
storage.UpdateUsername(updateLogin.Username)
|
||||
storage.UpdatePassword(updateLogin.Password)
|
||||
}
|
||||
Reference in New Issue
Block a user