API: ability to search for an allocation based on the assigned server id (#194)

This commit is contained in:
Emmet Young 2016-12-05 14:17:35 +11:00 committed by Dane Everitt
parent e3587966e2
commit f687fab9a2
2 changed files with 31 additions and 0 deletions

View file

@ -140,6 +140,11 @@ class APIRoutes
'uses' => 'Pterodactyl\Http\Controllers\API\NodeController@allocations'
]);
$api->get('nodes/allocations/{id}', [
'as' => 'api.admin.nodes.allocations',
'uses' => 'Pterodactyl\Http\Controllers\API\NodeController@allocationsView'
]);
$api->get('nodes/{id}', [
'as' => 'api.admin.nodes.view',
'uses' => 'Pterodactyl\Http\Controllers\API\NodeController@view'