hello world

This commit is contained in:
2022-12-09 10:59:15 -06:00
commit 8ae527683b
13 changed files with 552 additions and 0 deletions

18
endpoints/user.go Normal file
View 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)
}