Skip to content

Commit

Permalink
Trailing slash optional on URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
konklone committed Apr 28, 2010
1 parent 8e42c9a commit 03747da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ohnomymoney.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
end
end

get "/:handle" do
get "/:handle/?" do
halt 404 unless user = User.find_by_handle(params[:handle])

erb :index, :locals => {
Expand All @@ -33,7 +33,7 @@
}
end

get "/:handle/account/:id" do
get "/:handle/account/:id/?" do
halt 404 unless user = User.find_by_handle(params[:handle])
halt 404 unless account = user.accounts.find(params[:id])

Expand Down

0 comments on commit 03747da

Please sign in to comment.