File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 18
18
use SS14 \Endpoints \OAuth2Endpoint as SS14OAuth2Endpoint ;
19
19
use VerifierServer \Endpoints \Interfaces \EndpointInterface ;
20
20
//use VerifierServer\Endpoints\USPSEndpoint;
21
- use VerifierServer \Endpoints \VerifiedEndpoint ;
22
21
use VerifierServer \Endpoints \SS14VerifiedEndpoint ;
22
+ use VerifierServer \Endpoints \VerifiedEndpoint ;
23
23
use VerifierServer \Traits \HttpMethodsTrait ;
24
24
25
25
use Exception ;
@@ -309,6 +309,13 @@ public function handleEndpoint(
309
309
}
310
310
}
311
311
312
+ public function getEndpoint (string $ uri ): ?EndpointInterface
313
+ {
314
+ return (isset ($ this ->endpoints [$ uri ]) && $ this ->endpoints [$ uri ] instanceof EndpointInterface)
315
+ ? $ this ->endpoints [$ uri ]
316
+ : null ;
317
+ }
318
+
312
319
/**
313
320
* Handles an incoming resource request from a client and generates appropriate responses.
314
321
*
You can’t perform that action at this time.
0 commit comments