coolify/app/Http/Controllers
Poul fe855cf8d0 feat(api): add REST endpoints for destinations
The Destinations section is exposed in the Coolify UI but not via the
REST API. The destination_uuid field is required when creating
applications via create-public-application, but no way to enumerate or
create destinations programmatically existed — this blocks IaC tools
(e.g. an Aspire publisher targeting Coolify).

Adds, scoped to the existing v1 auth:sanctum + ApiAllowed + api.sensitive
group:

  GET    /api/v1/destinations
  GET    /api/v1/destinations/{uuid}
  DELETE /api/v1/destinations/{uuid}
  GET    /api/v1/servers/{server_uuid}/destinations
  POST   /api/v1/servers/{server_uuid}/destinations

The controller uses the existing inline-Validator convention (no Form
Request classes per the API surface's house style), reuses
StandaloneDocker::ownedByCurrentTeamAPI / SwarmDocker::ownedByCurrentTeamAPI
for team scoping (matching ScheduledTasksController etc.), and respects
the `attachedTo()` guard on delete.

No migrations needed — both standalone_dockers and swarm_dockers tables
already carry uuid/name/network/server_id/timestamps.

OpenAPI @OA\ annotations omitted in this commit to keep the diff
minimal; a follow-up can add them in the style of ServersController.
2026-05-25 11:15:08 +00:00
..
Api feat(api): add REST endpoints for destinations 2026-05-25 11:15:08 +00:00
Webhook feat(webhook): skip deployment on [skip ci]/[skip cd] commit markers 2026-04-29 09:12:24 +02:00
Controller.php refactor(auth): upgrade email verification hash to sha256 2026-04-20 12:09:48 +02:00
OauthController.php fix: normalize oauth emails before matching users 2026-04-09 09:38:56 -06:00
UploadController.php fix(backup): add .dmp to allowed extensions for database import (#9869) 2026-04-29 18:57:50 +02:00