added more legacy api endpoints

This commit is contained in:
albert
2013-01-22 17:42:00 -05:00
parent 5754089c2b
commit e0c563373a
9 changed files with 57 additions and 0 deletions

View File

@@ -236,9 +236,13 @@ Danbooru::Application.routes.draw do
match "/post_tag_history" => redirect {|params, req| "/post_versions?page=#{req.params[:page]}"}
match "/post_tag_history/index" => redirect {|params, req| "/post_versions?page=#{req.params[:page]}"}
match "/tag/index.xml", :controller => "legacy", :action => "tags", :format => "xml"
match "/tag/index.json", :controller => "legacy", :action => "tags", :format => "json"
match "/tag" => redirect {|params, req| "/tags?page=#{req.params[:page]}"}
match "/tag/index" => redirect {|params, req| "/tags?page=#{req.params[:page]}"}
match "/user/index.xml", :controller => "legacy", :action => "users", :format => "xml"
match "/user/index.json", :controller => "legacy", :action => "users", :format => "json"
match "/user" => redirect {|params, req| "/users?page=#{req.params[:page]}"}
match "/user/index" => redirect {|params, req| "/users?page=#{req.params[:page]}"}