-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.rb
66 lines (52 loc) · 1.21 KB
/
routes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
AmrArchives::Application.routes.draw do
devise_for :users
resources :users
resources :performances do
member do
get :remote_performance
post :remote_performance
end
collection do
get :set_search_mode, :list, :remote_catalog
post :list, :remote_catalog
end
end
resources :artists, :except => [:new, :create] do
collection do
post :list, :search
end
end
resources :instruments, :except => [:show, :new, :create] do
collection do
post :list, :search
end
end
resources :locations, :except => [:show, :new, :create] do
collection do
post :list, :search
end
end
resources :bands, :except => [:new, :create] do
collection do
post :list, :search
end
end
resources :medias, :except => [:show, :new, :create] do
collection do
post :list, :search
end
end
resources :genres, :except => [:show, :new, :create] do
collection do
post :list, :search
end
end
resources :events, :except => [:new, :create] do
collection do
post :list, :search
end
end
root "performances#index"
#map.connect ':controller/:action/:id'
#map.connect ':controller/:action/:id.:format'
end