From e2eb0afe06098608d83b86c02ad61d71487998b7 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Mon, 28 Apr 2025 22:06:01 -0600 Subject: [PATCH] test /v1/feeds POST --- src/cmd/server/handler/feeds.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cmd/server/handler/feeds.go b/src/cmd/server/handler/feeds.go index 53164c4..4388012 100644 --- a/src/cmd/server/handler/feeds.go +++ b/src/cmd/server/handler/feeds.go @@ -1,6 +1,7 @@ package handler import ( + "context" "io" "net/http" ) @@ -8,9 +9,12 @@ import ( func (h Handler) feeds(w http.ResponseWriter, r *http.Request) error { switch r.Method { case http.MethodPost: - return io.EOF + return h.feedsPost(ctx, r.Body) default: http.NotFound(w, r) } return nil } + +func (h Handler) feedsPost(ctx context.Context, r io.Reader) error { +}