photo-upload und ansicht im admin gefixt
This commit is contained in:
@@ -54,15 +54,11 @@ class PhotoResource extends JsonResource
|
||||
return null;
|
||||
}
|
||||
|
||||
$route = $variant === 'thumbnail'
|
||||
? 'api.v1.gallery.photos.asset'
|
||||
: 'api.v1.gallery.photos.asset';
|
||||
|
||||
return \URL::temporarySignedRoute(
|
||||
$route,
|
||||
'api.v1.tenant.events.photos.asset',
|
||||
now()->addMinutes(30),
|
||||
[
|
||||
'token' => $this->event->slug, // tenant/admin views are trusted; token not used server-side for signed validation
|
||||
'event' => $this->event->slug,
|
||||
'photo' => $this->id,
|
||||
'variant' => $variant === 'thumbnail' ? 'thumbnail' : 'full',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user