Cleanup old objects and add serializer

This commit is contained in:
Tim
2021-10-03 20:44:09 +02:00
parent c823696937
commit 44bd43128b
10 changed files with 3 additions and 714 deletions

View File

@ -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)