From 250720086733cbc0d31a2d7b9e585a074dda816a Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 10 May 2013 17:19:26 +0200 Subject: added HEAD route for accessible requests --- lib/opentox.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/opentox.rb b/lib/opentox.rb index 8e20ab2..f1ae2d1 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -109,7 +109,12 @@ module OpenTox # HEAD route for service check # algorithm, compound and validation overwrite this head "/#{SERVICE}/?" do - #$logger.debug "#{SERVICE.capitalize} service is running." + end + + # HEAD request for object in backend + # algorithm, dataset, compound and validation overwrite this + head "/#{SERVICE}/:id/?" do + resource_not_found_error "#{uri} not found." unless FourStore.head(@uri) end # Get a list of objects at the server or perform a SPARQL query -- cgit v1.2.3