feat: add deployments api

This commit is contained in:
Andras Bacsai
2024-03-07 12:27:23 +01:00
parent 515d401746
commit c7f15c42fa
8 changed files with 38 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ class Resources extends Controller
{
$teamId = get_team_id_from_token();
if (is_null($teamId)) {
return response()->json(['error' => 'Invalid token.', 'docs' => 'https://coolify.io/docs/api/authentication'], 400);
return invalid_token();
}
$projects = Project::where('team_id', $teamId)->get();
$resources = collect();