api refactoring

This commit is contained in:
Čarodej
2022-05-11 09:19:55 +02:00
parent d2371e667f
commit c0e431b384
76 changed files with 1142 additions and 690 deletions

View File

@@ -74,12 +74,11 @@ class TrashTest extends TestCase
$image = UploadedFile::fake()
->image('fake-image.jpg');
$this->postJson('/api/upload', [
'name' => $image->name,
'file' => $image,
'parent_id' => null,
'path' => '/' . $image->name,
'is_last' => 'true',
$this->postJson('/api/upload/chunks', [
'name' => $image->name,
'chunk' => $image,
'is_last_chunk' => 1,
'extension' => 'jpg',
])->assertStatus(201);
$file = File::first();