Skip to content

Commit f26de76

Browse files
committed
use-new-brancher-app-endpoint
1 parent 43404db commit f26de76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Service/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class App extends AbstractService
99
public const V2_APP_LIST_URL = "/v2/app/";
1010
public const V2_APP_DETAIL_URL = "/v2/app/%s/";
1111
public const V2_APP_CANCEL_URL = "/v2/app/%s/cancel/";
12-
public const V2_APP_BRANCHER_URL = "/v2/app/%s/brancher/";
12+
public const V2_BRANCHER_APP_URL = "/v2/brancher/app/%s/";
1313
public const V1_APP_FLOWS_URL = "/logbook/v1/logbooks/%s/flows/";
1414

1515
/**

src/Service/BrancherApp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class BrancherApp extends AbstractService
2020
*/
2121
public function create(string $app, ?array $data = null): string
2222
{
23-
$url = sprintf(App::V2_APP_BRANCHER_URL, $app);
23+
$url = sprintf(App::V2_BRANCHER_APP_URL, $app);
2424

2525
$response = $this->client->api->post($url, [], $data ? json_encode($data) : null);
2626

0 commit comments

Comments
 (0)