fluke/devops-service/app/api2/routes/statistic.rb
2015-09-17 13:15:19 +03:00

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