lib/bigbluebutton_rails/rails/routes.rb in bigbluebutton_rails-0.0.4 vs lib/bigbluebutton_rails/rails/routes.rb in bigbluebutton_rails-0.0.5
- old
+ new
@@ -50,22 +50,24 @@
# bigbluebutton_routes :room_matchers
# end
#
# The routes generated are:
#
- # user_room GET /users/:user_id/room/:id(.:format)
- # { :controller=>"bigbluebutton/rooms", :action=>"show" }
- # user_join_room GET /users/:user_id/room/:id/join(.:format)
- # { :controller=>"bigbluebutton/rooms", :action=>"join" }
- # user_auth_room POST /users/:user_id/room/:id/join(.:format)
- # { :controller=>"bigbluebutton/rooms", :action=>"auth" }
- # user_running_room GET /users/:user_id/room/:id/running(.:format)
- # { :controller=>"bigbluebutton/rooms", :action=>"running" }
- # user_end_room GET /users/:user_id/room/:id/end(.:format)
- # { :controller=>"bigbluebutton/rooms", :action=>"end" }
- # user_invite_room GET /users/:user_id/room/:id/invite(.:format)
- # { :controller=>"bigbluebutton/rooms", :action=>"invite" }
+ # user_room GET /users/:user_id/room/:id(.:format)
+ # { :controller=>"bigbluebutton/rooms", :action=>"show" }
+ # user_join_room GET /users/:user_id/room/:id/join(.:format)
+ # { :controller=>"bigbluebutton/rooms", :action=>"join" }
+ # user_join_mobile_room GET /users/:user_id/room/:id/invite(.:format)
+ # { :controller=>"bigbluebutton/rooms", :action=>"invite" }
+ # user_auth_room POST /users/:user_id/room/:id/join(.:format)
+ # { :controller=>"bigbluebutton/rooms", :action=>"auth" }
+ # user_running_room GET /users/:user_id/room/:id/running(.:format)
+ # { :controller=>"bigbluebutton/rooms", :action=>"running" }
+ # user_end_room GET /users/:user_id/room/:id/end(.:format)
+ # { :controller=>"bigbluebutton/rooms", :action=>"end" }
+ # user_invite_room GET /users/:user_id/room/:id/invite(.:format)
+ # { :controller=>"bigbluebutton/rooms", :action=>"invite" }
#
def bigbluebutton_routes(*params)
options = params.extract_options!
send("bigbluebutton_routes_#{params[0].to_s}", options)
end
@@ -77,24 +79,27 @@
options_scope = options.has_key?(:scope) ? options[:scope] : BigbluebuttonRails.routing_scope
BigbluebuttonRails.set_controllers(options[:controllers])
scope options_scope, :as => options_scope do
resources :servers, :controller => BigbluebuttonRails.controllers[:servers] do
+ get :activity, :on => :member
resources :rooms, :controller => BigbluebuttonRails.controllers[:rooms] do
get :join, :on => :member
get :running, :on => :member
get :end, :on => :member
get :invite, :on => :member
+ get :join_mobile, :on => :member
post :join, :on => :member, :action => :auth
end
end
end
end
def bigbluebutton_routes_room_matchers(*params) #:nodoc:
# TODO This is generating helpers like "user_running_room" instead of "running_user_room"
get 'room/:id' => "#{BigbluebuttonRails.controllers[:rooms]}#show", :as => 'room'
get 'room/:id/join' => "#{BigbluebuttonRails.controllers[:rooms]}#join", :as => 'join_room'
+ get 'room/:id/join_mobile' => "#{BigbluebuttonRails.controllers[:rooms]}#join_mobile", :as => 'join_mobile_room'
post 'room/:id/join' => "#{BigbluebuttonRails.controllers[:rooms]}#auth", :as => 'join_room'
get 'room/:id/running' => "#{BigbluebuttonRails.controllers[:rooms]}#running", :as => 'running_room'
get 'room/:id/end' => "#{BigbluebuttonRails.controllers[:rooms]}#end", :as => 'end_room'
get 'room/:id/invite' => "#{BigbluebuttonRails.controllers[:rooms]}#invite", :as => 'invite_room'
end