Skip to content

Commit

Permalink
+ statistics draft 2
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Jul 2, 2012
1 parent ed1d376 commit 8150d23
Show file tree
Hide file tree
Showing 6 changed files with 263 additions and 474 deletions.
7 changes: 6 additions & 1 deletion statistics/lib/picky-statistics/application/app.rb
Expand Up @@ -34,7 +34,12 @@ class PickyStatistics < Sinatra::Base
# Returns statistics data in JSON for the index page.
#
get '/index.json' do
Stats.reset # TODO Remove.
Stats.since(0).to_json
end

# Returns statistics data in JSON since the last request.
#
get '/since_last.json' do
Stats.since_last.to_json
end

Expand Down

0 comments on commit 8150d23

Please sign in to comment.