9 lines
No EOL
255 B
Ruby
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 |