Commit 5cef32bb0362df5e01b02f69fbffcc7b30abb0d3
1 parent
788fbdd5
all position
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
app/library/App/Resources/AllPositionResource.php
... | ... | @@ -9,6 +9,7 @@ |
9 | 9 | namespace App\Resources; |
10 | 10 | |
11 | 11 | |
12 | +use App\Controllers\AllPositionController; | |
12 | 13 | use PhalconRest\Api\ApiResource; |
13 | 14 | |
14 | 15 | class AllPositionResource extends ApiResource |
... | ... | @@ -17,13 +18,13 @@ class AllPositionResource extends ApiResource |
17 | 18 | public function initialize() { |
18 | 19 | |
19 | 20 | $this |
20 | - ->name('Google Analytics') | |
21 | + ->name('All Position') | |
21 | 22 | ->expectsJsonData() |
22 | 23 | //->transformer(ModelTransformer::class) |
23 | 24 | ->itemKey('ap') |
24 | 25 | ->collectionKey('ap') |
25 | 26 | ->deny(AclRoles::UNAUTHORIZED) |
26 | - ->handler(GaController::class) | |
27 | + ->handler(AllPositionController::class) | |
27 | 28 | |
28 | 29 | ->endpoint(ApiEndpoint::get('', 'testAction') |
29 | 30 | ->allow(AclRoles::USER) | ... | ... |