Remove the `Assign` controller
authorAlexander Ebert <ebert@woltlab.com>
Mon, 11 Mar 2024 11:55:05 +0000 (12:55 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 11 Mar 2024 11:55:05 +0000 (12:55 +0100)
wcfsetup/install/files/lib/bootstrap/com.woltlab.wcf.php
wcfsetup/install/files/lib/system/endpoint/moderationqueues/Assign.class.php [deleted file]

index 9b42e05f4482ee0b48a40ad2b8c2d70366a04882..c085a92292f05b73080cc3efa0178709d71c4dda 100644 (file)
@@ -86,7 +86,6 @@ return static function (): void {
 
     $eventHandler->register(ControllerCollecting::class, static function (ControllerCollecting $event) {
         $event->register(new \wcf\system\endpoint\controller\core\messages\MentionSuggestions);
-        $event->register(new \wcf\system\endpoint\moderationqueues\Assign);
     });
 
     try {
diff --git a/wcfsetup/install/files/lib/system/endpoint/moderationqueues/Assign.class.php b/wcfsetup/install/files/lib/system/endpoint/moderationqueues/Assign.class.php
deleted file mode 100644 (file)
index 6f2e644..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-namespace wcf\system\endpoint\moderationqueues;
-
-use Laminas\Diactoros\Response\JsonResponse;
-use Psr\Http\Message\ResponseInterface;
-use Psr\Http\Message\ServerRequestInterface;
-use wcf\system\endpoint\IController;
-use wcf\system\endpoint\PostRequest;
-
-final class Assign implements IController
-{
-    #[PostRequest('/core/moderationqueues/:id/assign')]
-    public function assign(int $id, ServerRequestInterface $request): ResponseInterface
-    {
-        return new JsonResponse([
-            'id' => $id,
-            'request' => $request,
-        ]);
-    }
-}