mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
add /tool/torrent/reindex
This commit is contained in:
parent
6a3c810da7
commit
e5855d06b5
1 changed files with 18 additions and 0 deletions
|
|
@ -1772,6 +1772,24 @@ class TorrentController extends AbstractController
|
||||||
return new Response(); // @TODO
|
return new Response(); // @TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[Route(
|
||||||
|
'/tool/torrent/reindex',
|
||||||
|
methods:
|
||||||
|
[
|
||||||
|
'GET'
|
||||||
|
]
|
||||||
|
)]
|
||||||
|
public function reindex(
|
||||||
|
TorrentService $torrentService
|
||||||
|
): Response
|
||||||
|
{
|
||||||
|
// Reindex keywords
|
||||||
|
$torrentService->reindexTorrentKeywordsAll();
|
||||||
|
|
||||||
|
// Render response
|
||||||
|
return new Response(); // @TODO
|
||||||
|
}
|
||||||
|
|
||||||
private function initUser(
|
private function initUser(
|
||||||
Request $request,
|
Request $request,
|
||||||
UserService $userService,
|
UserService $userService,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue