Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/meetalendar/routes/meetalendar_admin.rb

Instance Method Summary collapse

Instance Method Details

#comfy_route_meetalendar_admin(options = {}) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/meetalendar/routes/meetalendar_admin.rb', line 5

def comfy_route_meetalendar_admin(options = {})
  options[:path] ||= "admin"
  path = [options[:path], "sites", ":site_id"].join("/")

  scope module: :comfy, as: :comfy do
    scope module: :admin do
      
      namespace :meetalendar, as: :admin_meetalendar, path: path, except: [:show] do
        resources :meetups, except: [:show] do
          collection do
            get 'search_mask'
            get 'search_result'
            get  'authorize_calendar'
            post 'authorize_calendar'
            get 'authorize_meetup'
            get 'callback'
            get 'failure'
          end
        end
      end

    end
  end
end