1
0
mirror of https://github.com/seejohnrun/haste-client.git synced 2025-12-15 16:25:57 +00:00
This commit is contained in:
vajain21
2015-01-21 14:59:06 +05:30
parent 94b2a4fbec
commit 0ea5e5c61c

View File

@@ -1,5 +1,6 @@
require 'json' require 'json'
require 'faraday' require 'faraday'
require 'uri'
module Haste module Haste
@@ -41,7 +42,9 @@ module Haste
private private
def do_post(data) def do_post(data)
connection.post('/documents', data) posturi= URI.parse(server_url)
posturi.path += '/documents'
connection.post(posturi.path, data)
end end
def connection def connection