Add rss feed for latest and hot

This commit is contained in:
Neil Lalonde
2013-07-05 16:49:06 -04:00
parent 4c90b16681
commit 1c0e0da683
4 changed files with 29 additions and 5 deletions

View File

@@ -179,6 +179,10 @@ Discourse::Application.routes.draw do
get 'popular' => 'list#popular_redirect'
get 'popular/more' => 'list#popular_redirect'
[:latest, :hot].each do |filter|
get "#{filter}.rss" => "list##{filter}_feed", format: :rss, as: "#{filter}_feed", filter: filter
end
[:latest, :hot, :favorited, :read, :posted, :unread, :new].each do |filter|
get "#{filter}" => "list##{filter}"
get "#{filter}/more" => "list##{filter}"