mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
API: ability to search for an allocation based on the assigned server id (#194)
This commit is contained in:
committed by
Dane Everitt
parent
e3587966e2
commit
f687fab9a2
@@ -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 New Issue
Block a user