feat: Add endpoints to retrieve summary of team/agents over a period of time (#8916)

- Internal APIs to prototype reporting improvements.
This commit is contained in:
Pranav Raj S
2024-02-13 02:14:40 -08:00
committed by GitHub
parent c607f09be0
commit 1ce5cbe275
7 changed files with 278 additions and 0 deletions

View File

@@ -294,6 +294,12 @@ Rails.application.routes.draw do
namespace :v2 do
resources :accounts, only: [:create] do
scope module: :accounts do
resources :summary_reports, only: [] do
collection do
get :agent
get :team
end
end
resources :reports, only: [:index] do
collection do
get :summary