diff options
author | gebele <gebele@in-silico.ch> | 2013-04-30 16:23:55 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-04-30 16:23:55 +0200 |
commit | 405b70df76b2a9ad8def1070657aaa5d1f0b0421 (patch) | |
tree | d92c9772f2232927c412f26e3c320cf30b1ef3c5 | |
parent | 627a5bcc293f017026e9f35d2e5a8c01d11e9f97 (diff) |
added HEAD route for service check
-rw-r--r-- | lib/opentox.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index c7072d3..d52dfcf 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -106,6 +106,12 @@ module OpenTox # Default methods, may be overwritten by derived services # see http://jcalcote.wordpress.com/2008/10/16/put-or-post-the-rest-of-the-story/ + # HEAD route for service check + # algorithm, compound and validation overwrite this + head "/#{SERVICE}/?" do + #$logger.debug "#{SERVICE.capitalize} service is running." + end + # Get a list of objects at the server or perform a SPARQL query get "/#{SERVICE}/?" do if params[:query] |