agenda-libre-ruby/app/controllers/maps_controller.rb

14 lines
268 B
Ruby

# Geocoding
#
# Access to OSM controls
class MapsController < ApplicationController
def index
respond_to do |format|
format.html
format.json do
render json: Event.moderated.future.geo.map { |event| event.to_json }
end
end
end
end