diff --git a/app/controllers/api/api_controller.rb b/app/controllers/api/api_controller.rb index 65c0c26..cbfc5ae 100644 --- a/app/controllers/api/api_controller.rb +++ b/app/controllers/api/api_controller.rb @@ -66,7 +66,7 @@ def pept2taxa @result = {} # Convert the peptides array into a JSON string - json_data = {peptides: peptides}.to_json + json_data = {peptides: @input}.to_json # The URL to which the request will be sent uri = URI.parse("http://localhost:3000/search")