ReviewOS

also looking at this

meemalabs/meema-client-php

Storage endpoints

#57
Merged glennmichael123 wants to merge storage-endpoints into main
1 file +3 -3
src/Models/Media.phpmodified+3-3
Changes to src/Models/Media.php
@@ -483,7 +483,7 @@ class Media
483483 */
484484 public function setVisibility($path, $visibility)
485485 {
486 return $this->client->request('POST', 'aws/set-visibility', compact('path', 'visibility'));
486 return $this->client->request('POST', 'storage/set-visibility', compact('path', 'visibility'));
487487 }
488488
489489 /**
@@ -495,7 +495,7 @@ class Media
495495 */
496496 public function has($path)
497497 {
498 $data = $this->client->request('POST', 'aws/has', compact('path'));
498 $data = $this->client->request('POST', 'storage/has', compact('path'));
499499
500500 return $data['exists'] ?? false;
501501 }
@@ -509,7 +509,7 @@ class Media
509509 */
510510 public function getMetadata($path)
511511 {
512 return $this->client->request('POST', 'aws/metadata', compact('path'));
512 return $this->client->request('POST', 'storage/metadata', compact('path'));
513513 }
514514
515515 /**