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

16 lines
327 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
.joins(:related_city).includes(:related_city)
.map { |event| event.to_json }
end
end
end
end