fix old routes

This commit is contained in:
albert
2013-01-07 16:50:00 -05:00
parent d6ae894097
commit 2a88c312c8
5 changed files with 8 additions and 66 deletions

View File

@@ -195,7 +195,7 @@ Danbooru::Application.routes.draw do
match "/artist" => redirect {|params, req| "/artists?page=#{req.params[:page]}"}
match "/artist/index" => redirect {|params, req| "/artists?page=#{req.params[:page]}"}
match "/artist/show/:id" => redirect("/artists/%{id}")
match "/artist/history/:id" => redirect("/artist_versions?search[artist_id]=%{id}")
match "/artist/history/:id" => redirect("/artist_versions?search[artist_id_eq]=%{id}")
match "/comment" => redirect {|params, req| "/comments?page=#{req.params[:page]}"}
match "/comment/index" => redirect {|params, req| "/comments?page=#{req.params[:page]}"}
@@ -215,7 +215,7 @@ Danbooru::Application.routes.draw do
match "/pool" => redirect {|params, req| "/pools?page=#{req.params[:page]}"}
match "/pool/index" => redirect {|params, req| "/pools?page=#{req.params[:page]}"}
match "/pool/show/:id" => redirect("/pools/%{id}")
match "/pool/history/:id" => redirect("/pool_versions?search[pool_id]=%{id}")
match "/pool/history/:id" => redirect("/pool_versions?search[pool_id_eq]=%{id}")
match "/pool/recent_changes" => redirect("/pool_versions")
match "/post/index.xml", :controller => "legacy", :action => "posts", :format => "xml"