From 5df28bdba0afc0b7b0ddd9a4ed76ff37b6cfc508 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 6 Feb 2017 17:28:22 +0200 Subject: [PATCH] test --- app/library/App/Resources/ProjectResource.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/library/App/Resources/ProjectResource.php b/app/library/App/Resources/ProjectResource.php index 368582a..c512562 100644 --- a/app/library/App/Resources/ProjectResource.php +++ b/app/library/App/Resources/ProjectResource.php @@ -28,21 +28,13 @@ class ProjectResource extends ApiResource { ->handler(CrudResourceController::class) ->itemKey('project') ->collectionKey('projects') - ->allow(AclRoles::UNAUTHORIZED) + ->deny(AclRoles::UNAUTHORIZED) - ->endpoint(ApiEndpoint::all() - ->description('Returns all projects') - ) + ->endpoint(ApiEndpoint::all()) ->endpoint(ApiEndpoint::create()) ->endpoint(ApiEndpoint::find()) ->endpoint(ApiEndpoint::update()) ->endpoint(ApiEndpoint::remove()) - - - ->endpoint(ApiEndpoint::get('/test', 'test') - ->allow(AclRoles::USER) - ->description('Returns tall projects') - ) ; } -- libgit2 0.21.4