From 405b70df76b2a9ad8def1070657aaa5d1f0b0421 Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 30 Apr 2013 16:23:55 +0200 Subject: added HEAD route for service check --- lib/opentox.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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] -- cgit v1.2.3