19 lines
412 B
Ruby
19 lines
412 B
Ruby
module Devops
|
|
module API2_0
|
|
module Routes
|
|
module StatisticRoutes
|
|
|
|
def self.registered(app)
|
|
app.get_with_headers '/statistic', :headers => [:accept] do
|
|
# check_privileges('statistic', 'r')
|
|
JSON.pretty_generate Devops::Db.connector.search_statistic(@params)
|
|
end
|
|
|
|
puts "Statistic routes initialized"
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|