ui(admin): add new node page
This commit is contained in:
parent
3c01dbbcc5
commit
d0a78ec067
15 changed files with 362 additions and 176 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue