add legacy artist json api
This commit is contained in:
@@ -201,7 +201,8 @@ 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.xml", :controller => "legacy", :action => "artists", :format => "xml"
|
||||
match "/artist/index.json", :controller => "legacy", :action => "artists", :format => "json"
|
||||
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])}"}
|
||||
|
||||
Reference in New Issue
Block a user