Json listing of events

This commit is contained in:
echarp 2015-11-10 23:32:16 +01:00
parent a9981262c5
commit 4fa3170085
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class EventsController < ApplicationController
def index
respond_to do |format|
format.html { render layout: 'iframe' if params[:iframe] }
format.json {}
format.json { @events = @events.future }
format.rss { @events = @events.future }
format.ics { @events = @events.last_year.includes :region }
format.xml { @events = @events.includes :region }