implemented get all teams the user is part of

This commit is contained in:
konrad 2018-07-16 08:52:16 +02:00 committed by kolaente
parent b11bd9f0b1
commit f6a816941b
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
3 changed files with 15 additions and 1 deletions

View file

@ -1,6 +1,7 @@
package crud
import (
"fmt"
"git.kolaente.de/konrad/list/models"
"github.com/labstack/echo"
"net/http"
@ -15,6 +16,8 @@ func (c *WebHandler) ReadAllWeb(ctx echo.Context) error {
lists, err := c.CObject.ReadAll(&currentUser)
if err != nil {
fmt.Println(err)
return echo.NewHTTPError(http.StatusInternalServerError, "An error occured.")
}