summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-04-25 15:40:39 +0200
committergebele <gebele@in-silico.ch>2013-04-25 15:40:39 +0200
commitcfd85699c151ef907deb7f49f5606a5400b8179f (patch)
tree226cc3b67a4afea7806d67a3688a603a8a27f65b
parentf6f967be3df9af503671afaaa480596a60599f5b (diff)
removed long error protocol on GET requests/added HEAD route for service check
-rw-r--r--application.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/application.rb b/application.rb
index b82676f..c7c2c9a 100644
--- a/application.rb
+++ b/application.rb
@@ -37,8 +37,13 @@ module OpenTox
@inchi = URI.unescape request.env['REQUEST_URI'].sub(/^\//,'').sub(/.*compound\//,'').sub(/\/smarts.*$/,'').sub(/\/image/,'').sub(/\?.*$/,'') # hack to avoid sinatra's URI/CGI unescaping, splitting, ..."
end
+ # for service check
+ head "/compound/?" do
+ end
+
get "/compound/?" do
- not_implemented_error "Object listing not implemented, because compounds are not stored at the server.", to("/compound")
+ "Object listing not implemented, because compounds are not stored at the server.".to_html
+ #not_implemented_error "Object listing not implemented, because compounds are not stored at the server.", to("/compound")
end
get '/compound/pc_descriptors.yaml' do