Return nested array instead for the /api/paths controller.