Replace sparkbooth upload with photobooth uploader

This commit is contained in:
soeren
2026-01-29 12:16:27 +01:00
parent e37f533bcb
commit 084c52ba2d
27 changed files with 2163 additions and 50 deletions

View File

@@ -27,7 +27,7 @@ class SparkboothUploadTest extends TestCase
$file = UploadedFile::fake()->image('photo.jpg', 800, 600);
$response = $this->postJson(route('api.sparkbooth.upload'), [
$response = $this->postJson(route('api.photobooth.upload'), [
'username' => 'spark-user',
'password' => 'secret-123',
'media' => $file,
@@ -66,7 +66,7 @@ class SparkboothUploadTest extends TestCase
$file = UploadedFile::fake()->image('photo.jpg', 800, 600);
$response = $this->post(route('api.sparkbooth.upload'), [
$response = $this->post(route('api.photobooth.upload'), [
'username' => 'spark-user',
'password' => 'wrong',
'media' => $file,
@@ -96,7 +96,7 @@ class SparkboothUploadTest extends TestCase
$binary = base64_encode(file_get_contents($fake->getRealPath()));
$dataUri = 'data:image/png;base64,'.$binary;
$response = $this->postJson(route('api.sparkbooth.upload'), [
$response = $this->postJson(route('api.photobooth.upload'), [
'token' => $token,
'media' => $dataUri,
'filename' => 'custom.png',