use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Server\RequestHandlerInterface;
+use wcf\http\attribute\AllowHttpMethod;
use wcf\system\endpoint\event\ControllerCollecting;
use wcf\system\endpoint\IController;
use wcf\system\endpoint\RequestFailure;
use function FastRoute\simpleDispatcher;
+#[AllowHttpMethod('DELETE')]
final class ApiAction implements RequestHandlerInterface
{
#[\Override]
--- /dev/null
+<?php
+
+namespace wcf\system\endpoint;
+
+#[\Attribute(\Attribute::TARGET_CLASS)]
+final class DeleteRequest extends RequestType
+{
+ public function __construct(string $uri)
+ {
+ parent::__construct(RequestMethod::GET, $uri);
+ }
+}