mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 20:35:50 -05:00
ui(admin): add new node page
This commit is contained in:
@@ -86,11 +86,6 @@ class LocationController extends ApplicationApiController
|
||||
|
||||
return $this->fractal->item($location)
|
||||
->transformWith(LocationTransformer::class)
|
||||
->addMeta([
|
||||
'resource' => route('api.application.locations.view', [
|
||||
'location' => $location->id,
|
||||
]),
|
||||
])
|
||||
->respond(201);
|
||||
}
|
||||
|
||||
|
||||
@@ -90,11 +90,6 @@ class NodeController extends ApplicationApiController
|
||||
|
||||
return $this->fractal->item($node)
|
||||
->transformWith(NodeTransformer::class)
|
||||
->addMeta([
|
||||
'resource' => route('api.application.nodes.view', [
|
||||
'node' => $node->id,
|
||||
]),
|
||||
])
|
||||
->respond(201);
|
||||
}
|
||||
|
||||
|
||||
@@ -87,12 +87,6 @@ class DatabaseController extends ApplicationApiController
|
||||
|
||||
return $this->fractal->item($database)
|
||||
->transformWith(ServerDatabaseTransformer::class)
|
||||
->addMeta([
|
||||
'resource' => route('api.application.servers.databases.view', [
|
||||
'server' => $server->id,
|
||||
'database' => $database->id,
|
||||
]),
|
||||
])
|
||||
->respond(Response::HTTP_CREATED);
|
||||
}
|
||||
|
||||
|
||||
@@ -115,11 +115,6 @@ class UserController extends ApplicationApiController
|
||||
|
||||
return $this->fractal->item($user)
|
||||
->transformWith(UserTransformer::class)
|
||||
->addMeta([
|
||||
'resource' => route('api.application.users.view', [
|
||||
'user' => $user->id,
|
||||
]),
|
||||
])
|
||||
->respond(201);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user