Added method to show one namespace
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user