Skip to content

Commit

Permalink
/statement/記事ID.json なURLがマッチしなくなっていたので修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kan committed Jul 15, 2015
1 parent 8ebe6c5 commit f2f10d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/statement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class App < Sinatra::Base
end
end

before '/statement/:id*' do
before '/statement/:id.?:format?' do
case params[:id]
when 'photos' , 'photos.json'
when 'photos'
@query = {"photos" => {:$ne => [] } }
else
@statement = Statement.find_by_id(params[:id])
Expand Down

0 comments on commit f2f10d2

Please sign in to comment.