Skip to content

Commit 48771b6

Browse files
committed
Update Server.php
1 parent efd7ea2 commit 48771b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/VerifierServer/Server.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
use React\Http\HttpServer;
1414
use React\Http\Message\Response;
1515
use React\Socket\SocketServer;
16-
use VerifierServer\Endpoints\VerifiedEndpoint;
1716
use VerifierServer\Endpoints\EndpointInterface;
17+
use VerifierServer\Endpoints\VerifiedEndpoint;
1818

1919
use Exception;
2020
use Throwable;
@@ -287,8 +287,7 @@ private function handleResource($client): null
287287
switch ($uri) {
288288
case '/':
289289
case '/verified':
290-
$endpoint = new VerifiedEndpoint($this->state);
291-
$endpoint->handle($method, $request, $response, $headers, $body);
290+
$this->endpoints['/verified']->handle($method, $request, $response, $headers, $body);
292291
break;
293292

294293
default:

0 commit comments

Comments
 (0)