diff options
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/application.rb b/application.rb index c0363d5..15088d5 100644 --- a/application.rb +++ b/application.rb @@ -1,7 +1,10 @@ require 'rubygems' +# AM LAST: can include both libs, no problems require File.join(File.expand_path(File.dirname(__FILE__)), 'libfminer/libbbrc/bbrc') # has to be included before openbabel, otherwise we have strange SWIG overloading problems -gem "opentox-ruby-api-wrapper", "= 1.6.5" -require 'opentox-ruby-api-wrapper' +require File.join(File.expand_path(File.dirname(__FILE__)), 'libfminer/liblast/last') # has to be included before openbabel, otherwise we have strange SWIG overloading problems +require File.join(File.expand_path(File.dirname(__FILE__)), 'last-utils/lu.rb') # AM LAST +gem "opentox-ruby", "~> 0" +require 'opentox-ruby' #require 'smarts.rb' #require 'similarity.rb' @@ -15,7 +18,10 @@ before do LOGGER.debug "Request: " + request.path end +# Get a list of available algorithms +# +# @return [text/uri-list] algorithm URIs get '/?' do response['Content-Type'] = 'text/uri-list' - [ url_for('/lazar', :full), url_for('/fminer', :full) ].join("\n") + "\n" + [ url_for('/lazar', :full), url_for('/fminer/bbrc', :full), url_for('/fminer/last', :full) ].join("\n") + "\n" end |