Commit 10164e4c5f2bafba4615db2ba1fe687c09a0bdba

Authored by Alex Savenko
1 parent eec0fd7e

test

Showing 1 changed file with 8 additions and 1 deletions   Show diff stats
app/library/App/Resources/ProjectResource.php
@@ -36,7 +36,14 @@ class ProjectResource extends ApiResource { @@ -36,7 +36,14 @@ class ProjectResource extends ApiResource {
36 ->endpoint(ApiEndpoint::create()) 36 ->endpoint(ApiEndpoint::create())
37 ->endpoint(ApiEndpoint::find()) 37 ->endpoint(ApiEndpoint::find())
38 ->endpoint(ApiEndpoint::update()) 38 ->endpoint(ApiEndpoint::update())
39 - ->endpoint(ApiEndpoint::remove()); 39 + ->endpoint(ApiEndpoint::remove())
  40 +
  41 +
  42 + ->endpoint(ApiEndpoint::get('/test', 'test')
  43 + ->allow(AclRoles::USER)
  44 + ->description('Returns tall projects')
  45 + )
  46 + ;
40 47
41 } 48 }
42 49