API: ability to search for an allocation based on the assigned server id (#194)
This commit is contained in:
parent
e3587966e2
commit
f687fab9a2
2 changed files with 31 additions and 0 deletions
|
@ -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'
|
||||
|
|
Reference in a new issue