Skip to content

Commit

Permalink
feat(api): added endpoint to allow UI to request rescore (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianHymer authored Oct 10, 2023
1 parent ad3849a commit 34dfa9a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/ceramic_cache/api/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,15 @@ def get_score(request, address: str) -> DetailedScoreResponse:
return handle_get_score(address, scorer_id, account)


@router.post(
"/score/{str:address}",
response=DetailedScoreResponse,
auth=JWTDidAuth(),
)
def calc_score(request, address: str) -> DetailedScoreResponse:
return submit_passport_from_cache(address)


class CacaoVerifySubmit(Schema):
issuer: str
signatures: List[Dict]
Expand Down

0 comments on commit 34dfa9a

Please sign in to comment.