Skip to content

Commit c73aea7

Browse files
committed
move endpoints
1 parent 3261de7 commit c73aea7

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

app/Enum/WebserviceEndpoints.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace App\Enum;
4+
5+
enum WebserviceEndpoints: string
6+
{
7+
case HEALTH_CHECK = "health.json";
8+
}
File renamed without changes.

app/Jobs/CheckSiteHealth.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Jobs;
44

55
use App\Enum\HttpMethod;
6+
use App\Enum\WebserviceEndpoints;
67
use App\Models\Site;
78
use App\Services\SiteConnectionService;
89
use GuzzleHttp\Exception\RequestException;
@@ -30,7 +31,7 @@ public function handle(): void
3031

3132
$response = $connection->performWebserviceRequest(
3233
HttpMethod::GET,
33-
'health.json'
34+
WebserviceEndpoints::HEALTH_CHECK->value
3435
);
3536

3637
$healthData = collect($response);

0 commit comments

Comments
 (0)