name('Project') ->model(Project::class) ->expectsJsonData() ->transformer(ProjectTransformer::class) ->handler(ProjectController::class) ->handler(CrudResourceController::class) ->itemKey('projects') ->collectionKey('projects') ->allow(AclRoles::AUTHORIZED) ->endpoint(ApiEndpoint::post('/test', 'test') ->description('Returns the currently logged in user') ) ->endpoint(ApiEndpoint::all()) ->endpoint(ApiEndpoint::create()) ->endpoint(ApiEndpoint::find()) ->endpoint(ApiEndpoint::update()) ->endpoint(ApiEndpoint::remove()) ; } }