Commit 8ad6d1ac authored by Michael Rose's avatar Michael Rose

stories: show: default to JSON

parent c0842d7f
......@@ -33,7 +33,7 @@ Rails.application.routes.draw do
post 'pensieve#bookmark' => 'pensieve#bookmark'
match 'pensieve#bookmark' => 'pensieve#bookmark', :via => :options
get 'stories/:id' => 'stories#show'
get 'stories/:id' => 'stories#show', :defaults => { :format => 'json' }
get '/404', :to => 'errors#not_found'
get '/422', :to => 'errors#unacceptable'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment