implemented get all namespaces via interface
This commit is contained in:
parent
5c4fb7ed73
commit
4213f3b08c
6 changed files with 65 additions and 40 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package crud
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
|
|
@ -16,7 +15,6 @@ func (c *WebHandler) ReadAllWeb(ctx echo.Context) error {
|
|||
|
||||
lists, err := c.CObject.ReadAll(¤tUser)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return ctx.JSON(http.StatusInternalServerError, models.Message{"Could not get."})
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue