coolify/app/Http/Controllers/Api
Poul 789e2c5cab fix(api/destinations): use getTeamIdFromToken() like other Api controllers
Initial draft called auth()->user()->currentTeam() which returns null in
the API context (Sanctum tokens don't carry the per-user currentTeam
state — that's a session/Livewire concept). Other Api controllers
(ServersController, ScheduledTasksController, etc.) use the canonical
helper getTeamIdFromToken() with a null guard returning 403.

This swap makes all five endpoints work against a real token.
2026-05-25 11:36:26 +00:00
..
ApplicationsController.php fix(applications): store custom nginx config from API correctly 2026-05-11 22:22:01 +02:00
CloudProviderTokensController.php feat(observability): add structured audit log channel for API and webhook events 2026-04-28 14:50:37 +02:00
DatabasesController.php feat(observability): add structured audit log channel for API and webhook events 2026-04-28 14:50:37 +02:00
DeployController.php feat(observability): add structured audit log channel for API and webhook events 2026-04-28 14:50:37 +02:00
DestinationsController.php fix(api/destinations): use getTeamIdFromToken() like other Api controllers 2026-05-25 11:36:26 +00:00
GithubController.php feat(observability): add structured audit log channel for API and webhook events 2026-04-28 14:50:37 +02:00
HetznerController.php feat(observability): add structured audit log channel for API and webhook events 2026-04-28 14:50:37 +02:00
OpenApi.php feat(api): Improve OpenAPI spec and add rate limit handling for Hetzner 2025-12-11 12:12:43 +01:00
OtherController.php fix(mcp): change enable/disable endpoints from GET to POST and fix service/app listing 2026-05-05 22:07:58 +02:00
ProjectController.php feat(observability): add structured audit log channel for API and webhook events 2026-04-28 14:50:37 +02:00
ResourcesController.php feat(auth): implement comprehensive authorization checks across API controllers 2025-08-23 18:51:10 +02:00
ScheduledTasksController.php feat(observability): add structured audit log channel for API and webhook events 2026-04-28 14:50:37 +02:00
SecurityController.php feat(observability): add structured audit log channel for API and webhook events 2026-04-28 14:50:37 +02:00
ServersController.php feat(api): expose connection_timeout in servers API 2026-04-28 15:43:58 +02:00
ServicesController.php feat(observability): add structured audit log channel for API and webhook events 2026-04-28 14:50:37 +02:00
TeamController.php fix(security): harden model assignment and sensitive data handling 2026-03-29 20:56:04 +02:00