mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-20 23:33:45 +02:00
Node and user API routes implemented.
More attempts at the logic for API permissions, most likely will need continued tweaking in the future, but base is there.
This commit is contained in:
@@ -84,7 +84,7 @@ class NodeTransformer extends TransformerAbstract
|
||||
return;
|
||||
}
|
||||
|
||||
return $this->collection($node->allocations, new AllocationTransformer, 'allocation');
|
||||
return $this->collection($node->allocations, new AllocationTransformer($this->request), 'allocation');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,7 +98,7 @@ class NodeTransformer extends TransformerAbstract
|
||||
return;
|
||||
}
|
||||
|
||||
return $this->item($node->location, new LocationTransformer, 'location');
|
||||
return $this->item($node->location, new LocationTransformer($this->request), 'location');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -112,6 +112,6 @@ class NodeTransformer extends TransformerAbstract
|
||||
return;
|
||||
}
|
||||
|
||||
return $this->collection($node->servers, new ServerTransformer, 'server');
|
||||
return $this->collection($node->servers, new ServerTransformer($this->request), 'server');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user