Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added general route for db/data/*

  • Loading branch information...
commit 4f9b16c0f88ad395ee1d5dabab9c6579e0788f97 1 parent 126da86
@Romiko authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 gremlin-endpoint.rb
View
5 gremlin-endpoint.rb
@@ -26,6 +26,11 @@
response.gsub(/(http:\/\/\w+\W*.*\/db\/data)/, "http://" + ENV['APP_NAME'] + ".heroku.com/db/data")
end
+get 'db/data/*' do
+values = params[:splat]
+response = RestClient.get ENV['NEO4J_URL'] + '/db/data/' + values[0] , {:content_type => :json, :accept => :json}
+end
+
post '/db/data/batch' do
data = request.body.read;
begin
Please sign in to comment.
Something went wrong with that request. Please try again.