Skip to content

Commit d233118

Browse files
committed
- Fixed endpoints trailing slash
1 parent a155f94 commit d233118

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Boli.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected function getJson(string $endpoint, $params = []): ?array
127127
*/
128128
public function getBusinessEntity(string $registration_number): ?array
129129
{
130-
return $this->getJson('/BusinessEntities/GetBusinessEntity', ['businessEntityNumber' => $registration_number]);
130+
return $this->getJson('BusinessEntities/GetBusinessEntity', ['businessEntityNumber' => $registration_number]);
131131
}
132132

133133
/**
@@ -155,7 +155,7 @@ public function getBusinessName(string $registration_number): ?array
155155
*/
156156
public function getProduct(string $registration_number): ?array
157157
{
158-
return $this->getJson('/products/GetProduct', ['productNumber' => $registration_number]);
158+
return $this->getJson('products/GetProduct', ['productNumber' => $registration_number]);
159159
}
160160

161161
/**
@@ -166,7 +166,7 @@ public function getProduct(string $registration_number): ?array
166166
*/
167167
public function getImportLicense(string $license_number): ?array
168168
{
169-
return $this->getJson('/products/GetImportLicense', ['productNumber' => $license_number]);
169+
return $this->getJson('products/GetImportLicense', ['productNumber' => $license_number]);
170170
}
171171

172172
}

0 commit comments

Comments
 (0)