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
|
// TODO
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,4 +63,4 @@ func UpdateListItem(c echo.Context) error {
|
||||||
// "$ref": "#/responses/Message"
|
// "$ref": "#/responses/Message"
|
||||||
|
|
||||||
return echo.NewHTTPError(http.StatusNotImplemented)
|
return echo.NewHTTPError(http.StatusNotImplemented)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue