#591 - source-controls

This commit is contained in:
Saeed Vaziry
2025-05-18 23:46:28 +02:00
parent 1ed5d7362b
commit 5a00d35eba
19 changed files with 791 additions and 362 deletions

View File

@ -29,12 +29,15 @@ public function createRules(array $input): array
public function connect(): bool
{
try {
ds($this->getApiUrl());
$res = Http::withToken($this->data()['token'])
->get($this->getApiUrl().'/projects');
->get($this->getApiUrl().'/version');
} catch (Exception) {
return false;
}
ds($res->status());
return $res->successful();
}