API enhancements, return node config, return 200 not 201

This commit is contained in:
Dane Everitt 2016-10-12 15:42:23 -04:00
parent ab19e2ee96
commit 84a4c8b7f4
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 74 additions and 14 deletions

View file

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