Cleanup old objects and add serializer
This commit is contained in:
@ -15,7 +15,7 @@ class GrocyClient
|
||||
|
||||
private function getObjects(string $object, array $query = [], $order = null, $limit = null, $offset = null)
|
||||
{
|
||||
return $this->client->get($object, compact('order', 'limit', 'offset'));
|
||||
return $this->client->get(sprintf('objects/%s', $object), compact('order', 'limit', 'offset'));
|
||||
}
|
||||
|
||||
private function getObject(string $object, int $id)
|
||||
|
Reference in New Issue
Block a user