add a stats endpoint
This commit is contained in:
parent
69acb37402
commit
b3249ebb96
18
lib/travis/api/app/endpoint/stats.rb
Normal file
18
lib/travis/api/app/endpoint/stats.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user