test /v1/feeds POST
parent
754ceac95c
commit
e2eb0afe06
|
|
@ -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 {
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue