Skip to content

Commit b4065fe

Browse files
committed
store action must return 201 http status code
1 parent 30b73d9 commit b4065fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/actions/StoreAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public function __invoke(Request $request, Response $response): Response
4848
$command = new StoreImageCommand($mime, $binary);
4949
$this->bus->handle($command);
5050

51-
return $response->withJson(['filename' => $command->getPath()]);
51+
return $response->withStatus(201)->withJson(['filename' => $command->getPath()]);
5252
}
5353
}

0 commit comments

Comments
 (0)