This commit is contained in:
konrad 2018-07-11 02:40:29 +02:00 committed by kolaente
parent ee4a904e35
commit 281e9c1cd0
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
4 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@ func (c *WebHandler) CreateWeb(ctx echo.Context) error {
} }
// Get an ID if we have one // Get an ID if we have one
var id int64 = 0 var id int64
if ctx.Param("id") != "" { if ctx.Param("id") != "" {
id, err = models.GetIntURLParam("id", ctx) id, err = models.GetIntURLParam("id", ctx)
if err != nil { if err != nil {

View file

@ -1,10 +1,10 @@
package crud package crud
import ( import (
"fmt"
"git.kolaente.de/konrad/list/models" "git.kolaente.de/konrad/list/models"
"github.com/labstack/echo" "github.com/labstack/echo"
"net/http" "net/http"
"fmt"
) )
// UpdateWeb is the webhandler to update an object // UpdateWeb is the webhandler to update an object