From e5855d06b517c422d85cb302808fa9d1e4fa3414 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 15 Oct 2023 03:20:56 +0300 Subject: [PATCH] add /tool/torrent/reindex --- src/Controller/TorrentController.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Controller/TorrentController.php b/src/Controller/TorrentController.php index 3b0bd1b..1f38f46 100644 --- a/src/Controller/TorrentController.php +++ b/src/Controller/TorrentController.php @@ -1772,6 +1772,24 @@ class TorrentController extends AbstractController 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( Request $request, UserService $userService,