From 10164e4c5f2bafba4615db2ba1fe687c09a0bdba Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 6 Feb 2017 16:33:28 +0200 Subject: [PATCH] test --- app/library/App/Resources/ProjectResource.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/library/App/Resources/ProjectResource.php b/app/library/App/Resources/ProjectResource.php index 6e95783..1c3e63d 100644 --- a/app/library/App/Resources/ProjectResource.php +++ b/app/library/App/Resources/ProjectResource.php @@ -36,7 +36,14 @@ class ProjectResource extends ApiResource { ->endpoint(ApiEndpoint::create()) ->endpoint(ApiEndpoint::find()) ->endpoint(ApiEndpoint::update()) - ->endpoint(ApiEndpoint::remove()); + ->endpoint(ApiEndpoint::remove()) + + + ->endpoint(ApiEndpoint::get('/test', 'test') + ->allow(AclRoles::USER) + ->description('Returns tall projects') + ) + ; } -- libgit2 0.21.4