diff --git a/app/Models/Application.php b/app/Models/Application.php index fdb8796ef..859abe191 100644 --- a/app/Models/Application.php +++ b/app/Models/Application.php @@ -1177,6 +1177,8 @@ public static function getDomainsByUuid(string $uuid): array } return []; + } + public function getMetrics(int $mins = 5) { $server = $this->destination->server; diff --git a/routes/api.php b/routes/api.php index a2f8109cb..7ed1d1703 100644 --- a/routes/api.php +++ b/routes/api.php @@ -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']);