diff --git a/app/Repositories/Wings/FileRepository.php b/app/Repositories/Wings/FileRepository.php index 3b2006634..be37d392c 100644 --- a/app/Repositories/Wings/FileRepository.php +++ b/app/Repositories/Wings/FileRepository.php @@ -79,8 +79,10 @@ class FileRepository extends BaseWingsRepository implements FileRepositoryInterf return $this->getHttpClient()->post( sprintf('/api/servers/%s/files/create-directory', $this->getServer()->uuid), [ - 'name' => $name, - 'directory' => $path, + 'json' => [ + 'name' => $name, + 'path' => $path, + ], ] ); }