List item creation is now done via handler
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
package crud
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
"fmt"
|
||||
"git.kolaente.de/konrad/list/models"
|
||||
"github.com/labstack/echo"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ReadAllWeb is the webhandler to get all objects of a type
|
||||
@ -21,4 +21,4 @@ func (c *WebHandler) ReadAllWeb(ctx echo.Context) error {
|
||||
}
|
||||
|
||||
return ctx.JSON(http.StatusOK, lists)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user