Expose part of the event API again
This commit is contained in:
parent
3fd09ca53a
commit
f8d261f149
|
@ -3,7 +3,7 @@ class Api::EventsController < Api::ApplicationController
|
|||
before_filter :require_current_conference!
|
||||
|
||||
def index
|
||||
@events = current_conference.events.includes(:participations)
|
||||
@events = current_conference.events.approved.joins(:proposition).includes(:participations)
|
||||
end
|
||||
|
||||
def halfnarp_friendly
|
||||
|
|
|
@ -15,12 +15,12 @@ Rails.application.routes.draw do
|
|||
|
||||
namespace :api do
|
||||
resources :conferences, only: [] do
|
||||
# resources :events, only: :index do
|
||||
resources :events, only: :index do
|
||||
# collection do
|
||||
# get :halfnarp_friendly
|
||||
# end
|
||||
# end
|
||||
# resources :speakers, only: :index
|
||||
end
|
||||
resources :speakers, only: :index
|
||||
resources :tracks, only: :index
|
||||
resources :event_types, only: :index
|
||||
resources :halls, only: :index
|
||||
|
|
Loading…
Reference in New Issue