added missing public endpoints

Change-Id: I61da28575565d68cc0ff0736e277510928ccb5e4
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet 2021-04-12 16:17:56 -03:00
parent e7529e647d
commit 8c7ded4a88
3 changed files with 5 additions and 0 deletions

View File

@ -200,6 +200,7 @@ final class OAuth2SponsoredProjectApiController extends OAuth2ProtectedControlle
return [
'name',
'id',
'order'
];
},
function ($filter) use($id) {

View File

@ -35,6 +35,9 @@ trait ParametrizedGetEntity
{
try {
$entity = $getEntityFn($id, ...$args);
if(is_null($entity))
throw new EntityNotFoundException();
$fields = Request::input('fields', '');
$relations = Request::input('relations', '');

View File

@ -29,6 +29,7 @@ Route::group([
], function () {
Route::group(['prefix' => 'sponsored-projects'], function(){
Route::get('', 'OAuth2SponsoredProjectApiController@getAll');
Route::group(['prefix'=>'{id}'], function(){
Route::get('', [ 'uses' => 'OAuth2SponsoredProjectApiController@get']);
Route::group(['prefix'=>'sponsorship-types'], function(){