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 1818use SS14 \Endpoints \OAuth2Endpoint as SS14OAuth2Endpoint ;
1919use VerifierServer \Endpoints \Interfaces \EndpointInterface ;
2020//use VerifierServer\Endpoints\USPSEndpoint;
21- use VerifierServer \Endpoints \VerifiedEndpoint ;
2221use VerifierServer \Endpoints \SS14VerifiedEndpoint ;
22+ use VerifierServer \Endpoints \VerifiedEndpoint ;
2323use VerifierServer \Traits \HttpMethodsTrait ;
2424
2525use Exception ;
@@ -309,6 +309,13 @@ public function handleEndpoint(
309309 }
310310 }
311311
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+
312319 /**
313320 * Handles an incoming resource request from a client and generates appropriate responses.
314321 *
You can’t perform that action at this time.
0 commit comments