瀏覽代碼

Fix atom feed route

Thibaut 11 年之前
父節點
當前提交
d0deb1b7d0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/app.rb

+ 1 - 1
lib/app.rb

@@ -144,7 +144,7 @@ class App < Sinatra::Application
     redirect 'http://www.shopify.com/careers?utm_source=devdocs&utm_medium=banner&utm_campaign=devdocs'
   end
 
-  get '/feed' do
+  get %r{\A/feed(?:\.atom)?\z} do
     content_type 'application/atom+xml'
     settings.news_feed
   end