mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-19 16:20:50 +08:00
api remove page title etc
This commit is contained in:
@@ -19,9 +19,9 @@ class FileController extends Controller
|
||||
$torrentId = $request->torrent_id;
|
||||
$files = File::query()->where('torrent', $torrentId)->get();
|
||||
$resource = FileResource::collection($files);
|
||||
$resource->additional([
|
||||
'page_title' => nexus_trans('file.index.page_title'),
|
||||
]);
|
||||
// $resource->additional([
|
||||
// 'page_title' => nexus_trans('file.index.page_title'),
|
||||
// ]);
|
||||
|
||||
return $this->success($resource);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user