aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/api/controller/subscription.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/api/controller/subscription.go')
-rw-r--r--server/api/controller/subscription.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/api/controller/subscription.go b/server/api/controller/subscription.go
index 700b39c..b3d6272 100644
--- a/server/api/controller/subscription.go
+++ b/server/api/controller/subscription.go
@@ -16,20 +16,20 @@ import (
func (c *Controller) GetSubscriptions(ctx *core.Context, request *core.Request, response *core.Response) {
websiteURL, err := payload.DecodeURLPayload(request.Body())
if err != nil {
- response.Json().BadRequest(err)
+ response.JSON().BadRequest(err)
return
}
subscriptions, err := subscription.FindSubscriptions(websiteURL)
if err != nil {
- response.Json().ServerError(errors.New("Unable to discover subscriptions"))
+ response.JSON().ServerError(errors.New("Unable to discover subscriptions"))
return
}
if subscriptions == nil {
- response.Json().NotFound(fmt.Errorf("No subscription found"))
+ response.JSON().NotFound(fmt.Errorf("No subscription found"))
return
}
- response.Json().Standard(subscriptions)
+ response.JSON().Standard(subscriptions)
}