fmt
This commit is contained in:
parent
ee4a904e35
commit
281e9c1cd0
4 changed files with 4 additions and 4 deletions
|
@ -119,4 +119,4 @@ func (l *List) CanWrite(user *User) bool {
|
|||
// TODO
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,4 +63,4 @@ func UpdateListItem(c echo.Context) error {
|
|||
// "$ref": "#/responses/Message"
|
||||
|
||||
return echo.NewHTTPError(http.StatusNotImplemented)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ func (c *WebHandler) CreateWeb(ctx echo.Context) error {
|
|||
}
|
||||
|
||||
// Get an ID if we have one
|
||||
var id int64 = 0
|
||||
var id int64
|
||||
if ctx.Param("id") != "" {
|
||||
id, err = models.GetIntURLParam("id", ctx)
|
||||
if err != nil {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package crud
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// UpdateWeb is the webhandler to update an object
|
||||
|
|
Loading…
Reference in a new issue