refactor: Update Application model to include getDomainsByUuid method

This commit is contained in:
Andras Bacsai 2024-06-20 14:07:24 +02:00
parent 44920944db
commit 2421f7c35c
2 changed files with 4 additions and 0 deletions

View File

@ -1177,6 +1177,8 @@ public static function getDomainsByUuid(string $uuid): array
}
return [];
}
public function getMetrics(int $mins = 5)
{
$server = $this->destination->server;

View File

@ -38,9 +38,11 @@
Route::get('/server/{uuid}', [Server::class, 'server_by_uuid']);
Route::get('/resources', [Resources::class, 'resources']);
Route::get('/domains', [Domains::class, 'domains']);
Route::put('/domains', [Domains::class, 'updateDomains']);
Route::delete('/domains', [Domains::class, 'deleteDomains']);
Route::get('/teams', [Team::class, 'teams']);
Route::get('/team/current', [Team::class, 'current_team']);
Route::get('/team/current/members', [Team::class, 'current_team_members']);