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!
|
before_filter :require_current_conference!
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@events = current_conference.events.includes(:participations)
|
@events = current_conference.events.approved.joins(:proposition).includes(:participations)
|
||||||
end
|
end
|
||||||
|
|
||||||
def halfnarp_friendly
|
def halfnarp_friendly
|
||||||
|
|
|
@ -15,12 +15,12 @@ Rails.application.routes.draw do
|
||||||
|
|
||||||
namespace :api do
|
namespace :api do
|
||||||
resources :conferences, only: [] do
|
resources :conferences, only: [] do
|
||||||
# resources :events, only: :index do
|
resources :events, only: :index do
|
||||||
# collection do
|
# collection do
|
||||||
# get :halfnarp_friendly
|
# get :halfnarp_friendly
|
||||||
# end
|
# end
|
||||||
# end
|
end
|
||||||
# resources :speakers, only: :index
|
resources :speakers, only: :index
|
||||||
resources :tracks, only: :index
|
resources :tracks, only: :index
|
||||||
resources :event_types, only: :index
|
resources :event_types, only: :index
|
||||||
resources :halls, only: :index
|
resources :halls, only: :index
|
||||||
|
|
Loading…
Reference in New Issue