From 0925899cee9362cf09e982487bd480e2b09041f4 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 11 Nov 2018 10:22:47 -0800 Subject: Move API middleware and routes to api package --- api/subscription.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api/subscription.go') diff --git a/api/subscription.go b/api/subscription.go index 55d0dd8..983a3ca 100644 --- a/api/subscription.go +++ b/api/subscription.go @@ -11,8 +11,7 @@ import ( "miniflux.app/reader/subscription" ) -// GetSubscriptions is the API handler to find subscriptions. -func (c *Controller) GetSubscriptions(w http.ResponseWriter, r *http.Request) { +func (h *handler) getSubscriptions(w http.ResponseWriter, r *http.Request) { subscriptionInfo, bodyErr := decodeURLPayload(r.Body) if bodyErr != nil { json.BadRequest(w, r, bodyErr) -- cgit v1.2.3