Skip to content

Commit eed4be4

Browse files
committed
Fix data being passed along to daemon
1 parent 95d19bf commit eed4be4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/Repositories/Wings/FileRepository.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ public function createDirectory(string $name, string $path): ResponseInterface
7979
return $this->getHttpClient()->post(
8080
sprintf('/api/servers/%s/files/create-directory', $this->getServer()->uuid),
8181
[
82-
'name' => $name,
83-
'directory' => $path,
82+
'json' => [
83+
'name' => $name,
84+
'path' => $path,
85+
],
8486
]
8587
);
8688
}

0 commit comments

Comments
 (0)