Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jsonlogic conditions on endpoints #138

Merged
merged 16 commits into from
Dec 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add docblock
rjzondervan committed Dec 19, 2024
commit b2a4b213f72dc988a421de7a2bb1d1c108a0ea5c
8 changes: 8 additions & 0 deletions lib/Service/EndpointService.php
Original file line number Diff line number Diff line change
@@ -308,6 +308,14 @@ private function getHeaders(array $server, bool $proxyHeaders = false): array
);
}

/**
* Check conditions for using an endpoint.
*
* @param Endpoint $endpoint The endpoint for which the checks should be done.
* @param IRequest $request The inbound request.
* @return array
* @throws Exception
*/
private function checkConditions(Endpoint $endpoint, IRequest $request): array
{
$conditions = $endpoint->getConditions();