From 4f6216d6dcf5ea268a8e5367780031b3bf98efea Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 10 May 2013 17:28:37 +0200 Subject: added HEAD/:id route --- application.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application.rb b/application.rb index f9e456b..6583a82 100644 --- a/application.rb +++ b/application.rb @@ -37,6 +37,10 @@ module OpenTox parse_put end + head "/#{SERVICE}/:id/?" do + resource_not_found_error "#{uri} not found." unless FourStore.head(@uri) + end + get "/dataset/:id/?" do case @accept when "application/rdf+xml", "text/turtle", "text/plain", /html/ -- cgit v1.2.3