add legacy artist xml api

This commit is contained in:
albert
2013-02-23 12:15:23 -05:00
parent 3967cf7343
commit abefc91a42
3 changed files with 13 additions and 2 deletions

View File

@@ -201,6 +201,7 @@ Danbooru::Application.routes.draw do
# legacy aliases
match "/artist" => redirect {|params, req| "/artists?page=#{req.params[:page]}"}
match "/artist/index.xml", :controller => "legacy", :action => "artists"
match "/artist/index" => redirect {|params, req| "/artists?page=#{req.params[:page]}"}
match "/artist/show/:id" => redirect("/artists/%{id}")
match "/artist/show" => redirect {|params, req| "/artists?name=#{CGI::escape(req.params[:name])}"}