Commit 5df28bdba0afc0b7b0ddd9a4ed76ff37b6cfc508

Authored by Alex Savenko
1 parent cdfba281

test

Showing 1 changed file with 2 additions and 10 deletions   Show diff stats
app/library/App/Resources/ProjectResource.php
... ... @@ -28,21 +28,13 @@ class ProjectResource extends ApiResource {
28 28 ->handler(CrudResourceController::class)
29 29 ->itemKey('project')
30 30 ->collectionKey('projects')
31   - ->allow(AclRoles::UNAUTHORIZED)
  31 + ->deny(AclRoles::UNAUTHORIZED)
32 32  
33   - ->endpoint(ApiEndpoint::all()
34   - ->description('Returns all projects')
35   - )
  33 + ->endpoint(ApiEndpoint::all())
36 34 ->endpoint(ApiEndpoint::create())
37 35 ->endpoint(ApiEndpoint::find())
38 36 ->endpoint(ApiEndpoint::update())
39 37 ->endpoint(ApiEndpoint::remove())
40   -
41   -
42   - ->endpoint(ApiEndpoint::get('/test', 'test')
43   - ->allow(AclRoles::USER)
44   - ->description('Returns tall projects')
45   - )
46 38 ;
47 39  
48 40 }
... ...