summaryrefslogtreecommitdiff
path: root/lib/opentox.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r--lib/opentox.rb7
1 files changed, 6 insertions, 1 deletions
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