Fixed up GET endpoint for statistics API