lib/search_kit/search.rb in search-kit-0.0.1 vs lib/search_kit/search.rb in search-kit-0.0.2

- old
+ new

@@ -7,10 +7,11 @@ autoload :CLI, 'search_kit/search/cli' attr_reader :connection def initialize - @connection ||= SearchKit::Client.connection + uri = [SearchKit.config.app_uri, "search"].join("/") + @connection = Faraday.new(uri) end def search(slug, options) params = { data: { type: "searches", attributes: options } } response = connection.post(slug, params)