diff options
Diffstat (limited to 'application.rb')
-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 |