added missing public endpoints
Change-Id: I61da28575565d68cc0ff0736e277510928ccb5e4 Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
parent
e7529e647d
commit
8c7ded4a88
@ -200,6 +200,7 @@ final class OAuth2SponsoredProjectApiController extends OAuth2ProtectedControlle
|
||||
return [
|
||||
'name',
|
||||
'id',
|
||||
'order'
|
||||
];
|
||||
},
|
||||
function ($filter) use($id) {
|
||||
|
@ -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', '');
|
||||
|
||||
|
@ -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(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user