1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Update app/controllers/api/teams.php

Co-authored-by: kodumbeats <brandon.leckemby@gmail.com>
This commit is contained in:
Radmacher 2021-12-02 23:20:57 +01:00 committed by GitHub
parent c3f06f9a58
commit 95e2cb6290
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ App::get('/v1/teams')
->param('search', '', new Text(256), 'Enter any text to search. Max length: 256 chars.', true)
->param('limit', 25, new Range(0, 100), 'Limit how many results will be returned. Returns up to 25 results by default. Maximum of 100 results allowed per request.', true)
->param('offset', 0, new Range(0, 2000), 'Use this value to manage pagination. The default value is 0.', true)
->param('orderType', 'ASC', new WhiteList(['ASC', 'DESC'], true), 'Use ASC to order results in ascending and DESC to order results in descending order.', true)
->param('orderType', 'ASC', new WhiteList(['ASC', 'DESC'], true), 'Order result by ASC or DESC order.', true)
->inject('response')
->inject('projectDB')
->action(function ($search, $limit, $offset, $orderType, $response, $projectDB) {