Fix doubled /v1 prefix in source-side project calls

The SDK Client's endpoint already includes /v1; calling $this->call('GET',
'/v1/project') produced http://host/v1/v1/project and 404'd. Existing
'/health/version' caller already follows the prefix-less convention.

Affects all five project-singleton sources (AuthMethods, Policies,
Protocols, Labels, Services).
This commit is contained in:
Prem Palanisamy committed 2026-05-18 22:04:46 +01:00
1 parent eab858e31f
commit ddb4a6d666
1 file changed
+5 -5
+5 -5
View File
@@ -656,7 +656,7 @@ class Appwrite extends Source
*/
private function exportPolicies(): void
{
$response = $this->call('GET', '/v1/project');
$response = $this->call('GET', '/project');
if (!\is_array($response)) {
return;
@@ -690,7 +690,7 @@ class Appwrite extends Source
*/
private function exportAuthMethods(): void
{
$response = $this->call('GET', '/v1/project');
$response = $this->call('GET', '/project');
if (!\is_array($response)) {
return;
@@ -1697,7 +1697,7 @@ class Appwrite extends Source
*/
private function exportServices(): void
{
$response = $this->call('GET', '/v1/project');
$response = $this->call('GET', '/project');
if (!\is_array($response)) {
return;
@@ -1734,7 +1734,7 @@ class Appwrite extends Source
*/
private function exportLabels(): void
{
$response = $this->call('GET', '/v1/project');
$response = $this->call('GET', '/project');
if (!\is_array($response)) {
return;
@@ -1756,7 +1756,7 @@ class Appwrite extends Source
*/
private function exportProtocols(): void
{
$response = $this->call('GET', '/v1/project');
$response = $this->call('GET', '/project');
if (!\is_array($response)) {
return;