expire favorite/list_users.json
This commit is contained in:
@@ -19,6 +19,10 @@ class LegacyController < ApplicationController
|
||||
def tags
|
||||
@tags = Tag.search(params).limit(100)
|
||||
end
|
||||
|
||||
def unavailable
|
||||
render :text => "this resource is no longer available", :status => 410
|
||||
end
|
||||
|
||||
private
|
||||
def tag_query
|
||||
|
||||
@@ -205,6 +205,7 @@ Danbooru::Application.routes.draw do
|
||||
|
||||
match "/favorite" => redirect {|params, req| "/favorites?page=#{req.params[:page]}"}
|
||||
match "/favorite/index" => redirect {|params, req| "/favorites?page=#{req.params[:page]}"}
|
||||
match "/favorite/list_users.json", :controller => "legacy", :action => "unavailable"
|
||||
|
||||
match "/forum" => redirect {|params, req| "/forum_topics?page=#{req.params[:page]}"}
|
||||
match "/forum/index" => redirect {|params, req| "/forum_topics?page=#{req.params[:page]}"}
|
||||
|
||||
Reference in New Issue
Block a user