Permalink
Browse files

Added general route for db/data/*

  • Loading branch information...
1 parent 126da86 commit 4f9b16c0f88ad395ee1d5dabab9c6579e0788f97 @Romiko committed Jan 27, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 gremlin-endpoint.rb
View
@@ -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

0 comments on commit 4f9b16c

Please sign in to comment.