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

14 lines
264 B
Ruby
Raw Normal View History

# Geocoding
#
# Access to OSM controls
class MapsController < ApplicationController
def index
respond_to do |format|
format.html
format.json do
2014-08-23 16:59:42 +02:00
render json: Event.moderated.future.map { |event| event.to_json }
end
end
end
end