|
1 | 1 | # == Route Map
|
2 | 2 | #
|
3 |
| -# GET /.json(.:format) #<Proc:0x00000008e12370@/home/vagrant/web/config/routes.rb:270> |
4 |
| -# GET /teams/.json(.:format) #<Proc:0x00000008e324e0@/home/vagrant/web/config/routes.rb:271> |
| 3 | +# GET /.json(.:format) #<Proc:0x007f7b690e4cf0@/vagrant/config/routes.rb:256> |
| 4 | +# GET /teams/.json(.:format) #<Proc:0x007f7b690ea178@/vagrant/config/routes.rb:257> |
5 | 5 | # /mail_view MailPreview
|
6 | 6 | # protips_update GET|PUT /protips/update(.:format) protips#update
|
7 | 7 | # protip_update GET|PUT /protip/update(.:format) protip#update
|
|
51 | 51 | # protip GET /p/:id(.:format) protips#show
|
52 | 52 | # PUT /p/:id(.:format) protips#update
|
53 | 53 | # DELETE /p/:id(.:format) protips#destroy
|
54 |
| -# featured_networks GET /n/featured(.:format) networks#featured {:slug=>/[\dA-Z\-]/i} |
55 |
| -# user_networks GET /n/u/:username(.:format) networks#user {:slug=>/[\dA-Z\-]/i} |
56 |
| -# tagged_network GET /n/:id/t(/*tags)(.:format) networks#tag {:slug=>/[\dA-Z\-]/i} |
57 |
| -# members_network GET /n/:id/members(.:format) networks#members {:slug=>/[\dA-Z\-]/i} |
58 |
| -# mayor_network GET /n/:id/mayor(.:format) networks#mayor {:slug=>/[\dA-Z\-]/i} |
59 |
| -# expert_network GET /n/:id/expert(.:format) networks#expert {:slug=>/[\dA-Z\-]/i} |
60 | 54 | # join_network POST /n/:id/join(.:format) networks#join {:slug=>/[\dA-Z\-]/i}
|
61 | 55 | # leave_network POST /n/:id/leave(.:format) networks#leave {:slug=>/[\dA-Z\-]/i}
|
62 |
| -# update_tags_network POST /n/:id/update-tags(.:format) networks#update_tags {:slug=>/[\dA-Z\-]/i} |
63 |
| -# current_mayor_network GET /n/:id/current-mayor(.:format) networks#current_mayor {:slug=>/[\dA-Z\-]/i} |
64 | 56 | # networks GET /n(.:format) networks#index {:slug=>/[\dA-Z\-]/i}
|
65 |
| -# POST /n(.:format) networks#create {:slug=>/[\dA-Z\-]/i} |
66 |
| -# new_network GET /n/new(.:format) networks#new {:slug=>/[\dA-Z\-]/i} |
67 |
| -# edit_network GET /n/:id/edit(.:format) networks#edit {:slug=>/[\dA-Z\-]/i} |
68 | 57 | # network GET /n/:id(.:format) networks#show {:slug=>/[\dA-Z\-]/i}
|
69 |
| -# PUT /n/:id(.:format) networks#update {:slug=>/[\dA-Z\-]/i} |
70 |
| -# DELETE /n/:id(.:format) networks#destroy {:slug=>/[\dA-Z\-]/i} |
71 | 58 | # protips GET /trending(.:format) protips#index
|
72 | 59 | # faq GET /faq(.:format) pages#show {:page=>:faq}
|
73 | 60 | # tos GET /tos(.:format) pages#show {:page=>:tos}
|
|
297 | 284 | get 'd/:date(/:start)' => 'protips#date', as: :date
|
298 | 285 | get 't/trending' => 'protips#trending', as: :trending_topics
|
299 | 286 | get 't/by_tags' => 'protips#by_tags', as: :by_tags
|
300 |
| - get 't/(/*tags)' => 'networks#tag', as: :tagged |
301 |
| - put 't/(/*tags)/subscribe' => 'protips#subscribe', as: :subscribe |
302 |
| - put 't/(/*tags)/unsubscribe' => 'protips#unsubscribe', as: :unsubscribe |
| 287 | + get 't/(*tags)' => 'networks#tag', as: :tagged |
| 288 | + put 't/(*tags)/subscribe' => 'protips#subscribe', as: :subscribe |
| 289 | + put 't/(*tags)/unsubscribe' => 'protips#unsubscribe', as: :unsubscribe |
303 | 290 | get 'fresh'
|
304 | 291 | get 'trending'
|
305 | 292 | get 'popular'
|
|
321 | 308 | end
|
322 | 309 | end
|
323 | 310 |
|
324 |
| - resources :networks, path: '/n', constraints: { slug: /[\dA-Z\-]/i } do |
| 311 | + resources :networks, path: '/n', constraints: { slug: /[\dA-Z\-]/i } , only: [ :index, :show]do |
325 | 312 | member do
|
326 |
| - get '/t/(/*tags)' => 'networks#tag', as: :tagged |
327 | 313 | post '/join' => 'networks#join', as: :join
|
328 | 314 | post '/leave' => 'networks#leave', as: :leave
|
329 | 315 | end
|
|
0 commit comments