From c267aa2cb5b078b10cdc3d35144fa9fdaca92e03 Mon Sep 17 00:00:00 2001 From: Joel Unzain Date: Tue, 22 Sep 2020 16:16:29 -0700 Subject: [PATCH] add getAllItemsHandlder --- store/handler.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/store/handler.go b/store/handler.go index 9a920274..29b38755 100644 --- a/store/handler.go +++ b/store/handler.go @@ -76,7 +76,15 @@ func newDeleteItemHandler(s S) Handler { encodeGetOrDeleteItemResponse, kithttp.ServerErrorEncoder(encodeError), ) +} +func newGetAllItemsHandler(s S) Handler { + return kithttp.NewServer( + newGetAllItemsEndpoint(s) + decodeGetAllItemsRequest, + encodeGetAllItemsResponse, + kithttp.ServerErrorEncoder(encodeError), + ) } type requestHandler struct {