lib/pushpad/subscription.rb in pushpad-0.11.0 vs lib/pushpad/subscription.rb in pushpad-0.11.1

- old
+ new

@@ -16,10 +16,10 @@ def perform project_id = options[:project_id] || Pushpad.project_id raise "You must set project_id" unless project_id - endpoint = "https://pushpad.xyz/projects/#{project_id}/subscriptions" + endpoint = "https://pushpad.xyz/api/v1/projects/#{project_id}/subscriptions" response = Request.head(endpoint, query_parameters: query_parameters) unless response.code == "200" raise CountError, "Response #{response.code} #{response.message}: #{response.body}" end