requestManager->process( $service, $this->request ); if ($response === null) { $httpResponse = new JSONResponse(["message" => "$service not supported"], Http::STATUS_NOT_FOUND); } else { $httpResponse = $response->toHttpResponse(); } // We add a custom header so that setup checks can detect if their requests are answered by this controller return $httpResponse->addHeader('X-NEXTCLOUD-WELL-KNOWN', '1'); } }