List item creation is now done via handler
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
package crud
|
||||
|
||||
import (
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
)
|
||||
|
||||
// DeleteWeb is the web handler to delete something
|
||||
@ -34,4 +34,4 @@ func (c *WebHandler) DeleteWeb(ctx echo.Context) error {
|
||||
}
|
||||
|
||||
return ctx.JSON(http.StatusOK, models.Message{"Successfully deleted."})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user