Skip to content

Commit

Permalink
Merge pull request #1 from eahrold/feature/public-api-endpoints
Browse files Browse the repository at this point in the history
Add the ability to specify public api endpoints
  • Loading branch information
sdebacker committed Feb 16, 2016
2 parents 659a2cb + 2a3714c commit 6ffa82e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Http/Controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@

class ApiController extends BaseApiController
{

/**
* Array of endpoints that do not require authorization
*
*/
protected $publicEndpoints = [];

public function __construct(Repository $repository)
{
parent::__construct($repository);
Expand Down
7 changes: 7 additions & 0 deletions src/Models/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ class Object extends Base
use Translatable;

protected $presenter = 'TypiCMS\Modules\Objects\Presenters\ModulePresenter';

/**
* Declare any properties that should be hidden from JSON Serialization.
*
* @var array
*/
protected $hidden = [];

protected $fillable = [
'image',
Expand Down

0 comments on commit 6ffa82e

Please sign in to comment.