implemented creation of thing via parambinder

This commit is contained in:
konrad 2018-07-18 08:56:19 +02:00 committed by kolaente
parent ebb5b332b6
commit de95ff40bf
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
21 changed files with 39 additions and 40 deletions

View file

@ -9,11 +9,6 @@ import (
// DeleteWeb is the web handler to delete something
func (c *WebHandler) DeleteWeb(ctx echo.Context) error {
// Get the ID
/*id, err := models.GetIntURLParam("id", ctx)
if err != nil {
return echo.NewHTTPError(http.StatusBadRequest, "Invalid ID.")
}*/
// Bind params to struct
if err := ParamBinder(c.CObject, ctx); err != nil {
return echo.NewHTTPError(http.StatusBadRequest, "Invalid URL param.")