Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (7 sloc) 250 Bytes
request = require 'request'
exports.get = (uri) ->
return throw(new Error('URL is Required')) unless uri?
request(uri, json: true)
exports.post = (uri) ->
return thow(new Error('URL is Required')) unless uri?
request.post(uri, json: true)