Add deployment history endpoint

This commit is contained in:
litoral05
2026-05-05 10:51:21 +01:00
parent 0adda01f43
commit 0d6aa6300a
@@ -0,0 +1,21 @@
package com.litoralregas.openvpn.deployment;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/api/deployments")
public class DeploymentController {
private final DeploymentRepository repository;
public DeploymentController(DeploymentRepository repository) {
this.repository = repository;
}
@GetMapping
public List<Deployment> getAll() {
return repository.findAll();
}
}