Skip to content

Commit

Permalink
Update ApiV1Controller, remove no-preview image from media urls
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Mar 31, 2022
1 parent d82ffa2 commit 37dfb10
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/Http/Controllers/Api/ApiV1Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1448,8 +1448,6 @@ public function mediaUpdate(Request $request, $id)

$resource = new Fractal\Resource\Item($media, new MediaTransformer());
$res = $this->fractal->createData($resource)->toArray();
$res['preview_url'] = url('/storage/no-preview.png');
$res['url'] = url('/storage/no-preview.png');
return $this->json($res);
}

Expand All @@ -1472,8 +1470,6 @@ public function mediaGet(Request $request, $id)

$resource = new Fractal\Resource\Item($media, new MediaTransformer());
$res = $this->fractal->createData($resource)->toArray();
$res['preview_url'] = url('/storage/no-preview.png');
$res['url'] = url('/storage/no-preview.png');
return $this->json($res);
}

Expand Down

0 comments on commit 37dfb10

Please sign in to comment.