From 5cef32bb0362df5e01b02f69fbffcc7b30abb0d3 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 22 Feb 2017 20:52:21 +0200 Subject: [PATCH] all position --- app/library/App/Resources/AllPositionResource.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/library/App/Resources/AllPositionResource.php b/app/library/App/Resources/AllPositionResource.php index dc6e1fc..9e5f8ea 100644 --- a/app/library/App/Resources/AllPositionResource.php +++ b/app/library/App/Resources/AllPositionResource.php @@ -9,6 +9,7 @@ namespace App\Resources; +use App\Controllers\AllPositionController; use PhalconRest\Api\ApiResource; class AllPositionResource extends ApiResource @@ -17,13 +18,13 @@ class AllPositionResource extends ApiResource public function initialize() { $this - ->name('Google Analytics') + ->name('All Position') ->expectsJsonData() //->transformer(ModelTransformer::class) ->itemKey('ap') ->collectionKey('ap') ->deny(AclRoles::UNAUTHORIZED) - ->handler(GaController::class) + ->handler(AllPositionController::class) ->endpoint(ApiEndpoint::get('', 'testAction') ->allow(AclRoles::USER) -- libgit2 0.21.4