demarches-normaliennes/app/controllers/ban/search_controller.rb
2016-06-09 12:08:18 +02:00

9 lines
No EOL
255 B
Ruby

class Ban::SearchController < ApplicationController
def get
request = params[:request]
render json: Carto::Bano::AddressRetriever.new(request).list.inject([]) {
|acc, value| acc.push({label: value})
}.to_json
end
end