diff options
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/application.rb b/application.rb index 5bb201c..225776d 100644 --- a/application.rb +++ b/application.rb @@ -1,4 +1,5 @@ require 'json' +require 'rdiscount' require_relative './nanoparticles.rb' $ambit_search = "http://data.enanomapper.net/substance?type=name&search=" @@ -19,6 +20,11 @@ get '/predict/?' do haml :predict end +get '/license' do + @license = RDiscount.new(File.read("LICENSE.md")).to_html + haml :license, :layout => false +end + post '/predict/?' do size = params[:size].to_i @input = [] |