add a stats endpoint

This commit is contained in:
Sven Fuchs 2012-08-19 13:57:03 +02:00
parent 69acb37402
commit b3249ebb96

View File

@ -0,0 +1,18 @@
require 'travis/api/app'
class Travis::Api::App
class Endpoint
# TODO: Add documentation.
class Stats < Endpoint
# TODO: Add documentation.
get('/repos') do
{ :stats => Travis::Stats.daily_repository_counts }
end
# TODO: Add documentation.
get('/tests') do
{ :stats => Travis::Stats.daily_tests_counts }
end
end
end
end