Add sorting capabilities to most models in the API (#1022)

This commit is contained in:
Régis Freyd
2018-03-20 21:32:59 -04:00
committed by GitHub
parent 8be4c15e90
commit f5810865e7
9 changed files with 68 additions and 17 deletions
@@ -172,6 +172,12 @@ class ApiController extends Controller
'-updated_at',
'completed_at',
'-completed_at',
'called_at',
'-called_at',
'favorited_at',
'-favorited_at',
'next_expected_date',
'-next_expected_date',
];
if (in_array($criteria, $acceptedCriteria)) {