summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2014-10-06 21:32:49 +0200
committermguetlein <martin.guetlein@gmail.com>2014-10-06 21:32:49 +0200
commitcbea6288f1fb52fc57aad8119884345a55b6e222 (patch)
treeacfd288d1f6699342300490741c24cb1ea3902f9
parentd10c8feb418c53dc6d7f6fb7200ff31c2c1e1ae0 (diff)
add head methods for each service
-rw-r--r--application.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/application.rb b/application.rb
index 38295df..614c972 100644
--- a/application.rb
+++ b/application.rb
@@ -26,8 +26,11 @@ module OpenTox
parse_put
end
- head "/#{SERVICE}/:id/?" do
- resource_not_found_error "#{uri} not found." unless FourStore.head(@uri.split('?').first)
+ head "/dataset/?" do
+ end
+
+ head '/dataset/:id/?' do
+ halt 404 unless FourStore.head(@uri.split('?').first)
end
get "/dataset/:id/?" do