Added list create and update methods
This commit is contained in:
@ -7,7 +7,6 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// UserAddOrUpdate is the handler to add a user
|
||||
@ -52,8 +51,6 @@ func UserAddOrUpdate(c echo.Context) error {
|
||||
return c.JSON(http.StatusInternalServerError, models.Message{"Could not check if the user exists."})
|
||||
}
|
||||
|
||||
fmt.Println(exists)
|
||||
|
||||
// Insert or update the user
|
||||
var newUser models.User
|
||||
if exists {
|
||||
|
Reference in New Issue
Block a user