Skip to content

Commit

Permalink
Add delete handler for relatoinships, in fact a node cannot be delete…
Browse files Browse the repository at this point in the history
…d with deleting a relationship first.
  • Loading branch information
Romiko committed Jan 27, 2012
1 parent 4105b0b commit eabef90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gremlin-endpoint.rb
Expand Up @@ -44,7 +44,7 @@

delete '/db/data/relationship/:relationshipid' do
begin
address = ENV['NEO4J_URL'] + '/db/data/node/' + params[:relationshipid]
address = ENV['NEO4J_URL'] + '/db/data/relationship/' + params[:relationshipid]
response = RestClient.delete address
response.gsub(/(http:\/\/\w+\W*.*\/db\/data)/, "http://" + ENV['APP_NAME'] + ".heroku.com/db/data")
rescue Exception => e
Expand Down

0 comments on commit eabef90

Please sign in to comment.