We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3261de7 commit c73aea7Copy full SHA for c73aea7
app/Enum/WebserviceEndpoints.php
@@ -0,0 +1,8 @@
1
+<?php
2
+
3
+namespace App\Enum;
4
5
+enum WebserviceEndpoints: string
6
+{
7
+ case HEALTH_CHECK = "health.json";
8
+}
app/Controllers/Controller.php renamed to app/Http/Controllers/Controller.php
app/Jobs/CheckSiteHealth.php
@@ -3,6 +3,7 @@
namespace App\Jobs;
use App\Enum\HttpMethod;
+use App\Enum\WebserviceEndpoints;
use App\Models\Site;
use App\Services\SiteConnectionService;
9
use GuzzleHttp\Exception\RequestException;
@@ -30,7 +31,7 @@ public function handle(): void
30
31
32
$response = $connection->performWebserviceRequest(
33
HttpMethod::GET,
- 'health.json'
34
+ WebserviceEndpoints::HEALTH_CHECK->value
35
);
36
37
$healthData = collect($response);
0 commit comments