Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L.
2026-02-27 14:55:16 +01:00
parent 4f7ccdedb5
commit 04c08b586f
2 changed files with 20 additions and 5 deletions

View File

@@ -286,8 +286,12 @@ readonly class DockerController {
}
public function SystemPrune(Request $request, Response $response, array $args) : Response {
$this->dockerActionManager->SystemPrune();
return $response->withStatus(201)->withHeader('Location', '.');
$results = $this->dockerActionManager->SystemPrune();
$body = $response->getBody();
$body->write(json_encode($results));
return $response
->withStatus(200)
->withHeader('Content-Type', 'application/json; charset=utf-8');
}
public function stopTopContainer() : void {