Une redirection de plus de page php
This commit is contained in:
parent
a09a904c0b
commit
0b7e3d3116
|
@ -25,6 +25,7 @@ Rails.application.routes.draw do
|
||||||
|
|
||||||
# Manage former php pages
|
# Manage former php pages
|
||||||
get 'showevent.php', to: redirect { |params, request| "events/#{request.params[:id]}" }
|
get 'showevent.php', to: redirect { |params, request| "events/#{request.params[:id]}" }
|
||||||
|
get 'listevents.php', to: redirect { |params, request| "events?#{request.query_string}" }
|
||||||
# A mechanism to list "all" events
|
# A mechanism to list "all" events
|
||||||
get '(:format)listevents.php', to: redirect { |params, request| "events.#{request.format.to_sym}?#{request.query_string}" }
|
get '(:format)listevents.php', to: redirect { |params, request| "events.#{request.format.to_sym}?#{request.query_string}" }
|
||||||
# Respond to rss and ical calls
|
# Respond to rss and ical calls
|
||||||
|
|
Loading…
Reference in New Issue