demarches-normaliennes/app/controllers/ban/search_controller.rb

9 lines
255 B
Ruby
Raw Normal View History

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