diff options
author | gebele <gebele@in-silico.ch> | 2013-05-10 17:28:37 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-05-10 17:28:37 +0200 |
commit | 4f6216d6dcf5ea268a8e5367780031b3bf98efea (patch) | |
tree | 241fac9930e5a44baae49fc97b1e58182b5128f1 | |
parent | 71b0cfc9549fd165950f5107624ae4d4ebc3f66b (diff) |
added HEAD/:id route
-rw-r--r-- | application.rb | 4 |
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/ |