1
0

Added method to show one namespace

This commit is contained in:
kolaente
2018-07-02 09:09:32 +02:00
parent 124e4f4a5b
commit 06cae09f77
6 changed files with 199 additions and 13 deletions

View File

@ -1,8 +1,8 @@
package v1
import (
"github.com/labstack/echo"
"git.kolaente.de/konrad/list/models"
"github.com/labstack/echo"
"net/http"
)
@ -20,7 +20,6 @@ func GetAllNamespacesByCurrentUser(c echo.Context) error {
// "500":
// "$ref": "#/responses/Message"
user, err := models.GetCurrentUser(c)
if err != nil {
return c.JSON(http.StatusInternalServerError, models.Message{"Could not get the current user."})
@ -32,4 +31,4 @@ func GetAllNamespacesByCurrentUser(c echo.Context) error {
}
return c.JSON(http.StatusOK, namespaces)
}
}