api remove page title etc

This commit is contained in:
xiaomlove
2023-06-10 04:25:07 +08:00
parent f153b9ab9c
commit 8e156dcbea
11 changed files with 52 additions and 51 deletions
+5 -5
View File
@@ -30,9 +30,9 @@ class TorrentController extends Controller
$params['category_mode'] = Setting::get('main.browsecat');
$result = $this->repository->getList($params, Auth::user());
$resource = TorrentResource::collection($result);
$resource->additional([
'page_title' => nexus_trans('torrent.index.page_title'),
]);
// $resource->additional([
// 'page_title' => nexus_trans('torrent.index.page_title'),
// ]);
return $this->success($resource);
}
@@ -65,8 +65,8 @@ class TorrentController extends Controller
$resource = new TorrentResource($result);
$resource->additional([
'page_title' => nexus_trans('torrent.show.page_title'),
'field_labels' => Torrent::getFieldLabels(),
// 'page_title' => nexus_trans('torrent.show.page_title'),
// 'field_labels' => Torrent::getFieldLabels(),
'is_bookmarked' => (int)$isBookmarked,
'bonus_reward_values' => Torrent::BONUS_REWARD_VALUES,
]);