From 5ac578adf39d4738ddf43100bc0eba6ffc2d716a Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 17 Feb 2013 01:58:32 -0500 Subject: [PATCH] expire favorite/list_users.json --- app/controllers/legacy_controller.rb | 4 ++++ config/routes.rb | 1 + 2 files changed, 5 insertions(+) diff --git a/app/controllers/legacy_controller.rb b/app/controllers/legacy_controller.rb index 27eba6690..eed89c6b8 100644 --- a/app/controllers/legacy_controller.rb +++ b/app/controllers/legacy_controller.rb @@ -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 diff --git a/config/routes.rb b/config/routes.rb index 2f601bc21..2f9c4bd33 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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]}"}