mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Add database list endpoint, add more resource name magic
This commit is contained in:
@@ -14,6 +14,16 @@ class NodeTransformer extends BaseTransformer
|
||||
*/
|
||||
protected $availableIncludes = ['allocations', 'location', 'servers'];
|
||||
|
||||
/**
|
||||
* Return the resource name for the JSONAPI output.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getResourceName(): string
|
||||
{
|
||||
return Node::RESOURCE_NAME;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a node transformed into a format that can be consumed by the
|
||||
* external administrative API.
|
||||
|
||||
Reference in New Issue
Block a user