diff options
author | mguetlein <martin.guetlein@gmail.com> | 2014-10-06 21:32:49 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2014-10-06 21:32:49 +0200 |
commit | cbea6288f1fb52fc57aad8119884345a55b6e222 (patch) | |
tree | acfd288d1f6699342300490741c24cb1ea3902f9 | |
parent | d10c8feb418c53dc6d7f6fb7200ff31c2c1e1ae0 (diff) |
add head methods for each service
-rw-r--r-- | application.rb | 7 |
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 |