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

[Feat] Added idempotency key to crawl route #132

Merged
merged 5 commits into from
May 24, 2024

Conversation

rafaelsideguide
Copy link
Collaborator

Closes #108

@nickscamara
Copy link
Member

lgtm

@@ -19,6 +21,14 @@ export async function crawlController(req: Request, res: Response) {
return res.status(status).json({ error });
}

if (req.headers["x-idempotency-key"]) {
const isIdempotencyValid = await validateIdempotencyKey(req);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add 409 to sdk errors

@rafaelsideguide rafaelsideguide merged commit 4ce2859 into main May 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] Idempotency key
2 participants