Skip to content

Commit

Permalink
Add /api/v1/corporation/assets-contents/{corp_id} endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Jun 26, 2016
1 parent 530703c commit 60475a4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Http/Controllers/Api/v1/CorporationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,23 @@ public function getAssetsByLocation($corporation_id)
$this->getCorporationAssetByLocation($corporation_id));
}

/**
* @param $corporation_id
* @param null $parent_asset_id
* @param null $parent_item_id
*
* @return \Illuminate\Http\JsonResponse
*/
public function getAssetsContents($corporation_id,
$parent_asset_id = null,
$parent_item_id = null)
{

return response()->json(
$this->getCorporationAssetContents(
$corporation_id, $parent_asset_id, $parent_item_id));
}

/**
* @param $corporation_id
*
Expand Down

0 comments on commit 60475a4

Please sign in to comment.