mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
add torrent pieces hash
This commit is contained in:
@@ -148,4 +148,13 @@ class TorrentController extends Controller
|
||||
return $this->success($params);
|
||||
}
|
||||
|
||||
public function queryByPiecesHash(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'pieces_hash' => 'required|array',
|
||||
]);
|
||||
$result = $this->repository->getPiecesHashCache($request->pieces_hash);
|
||||
return $this->success($result);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user