summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--application.rb4
1 files changed, 4 insertions, 0 deletions
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/