Skip to content

Add lender API key check for score endpoint#9

Open
Fred0104 wants to merge 1 commit into
Zcorehub:mainfrom
Fred0104:lender-score-api-key
Open

Add lender API key check for score endpoint#9
Fred0104 wants to merge 1 commit into
Zcorehub:mainfrom
Fred0104:lender-score-api-key

Conversation

@Fred0104

Copy link
Copy Markdown

Summary

  • add a lender API key middleware that validates the x-api-key header against the Lender table
  • protect GET /api/user/:wallet/score with the middleware
  • document the required lender API key header in Swagger

Fixes #8

Validation

  • npm run build from Server/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add lender API key authentication to GET /api/user/{wallet}/score

1 participant