1
0

Added list create and update methods

This commit is contained in:
konrad
2018-06-10 14:14:10 +02:00
committed by kolaente
parent fb4c9d580c
commit f372128784
7 changed files with 167 additions and 6 deletions

View File

@ -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 {