Skip to content

Commit

Permalink
fix(api): communities -> scorer
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz committed May 12, 2023
1 parent 33c649c commit b2ac5f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/registry/api/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def get_passport_stamps(


@feature_flag_router.post(
"/communities/generic",
"/scorer/generic",
auth=ApiKey(),
response={
200: GenericCommunityResponse,
Expand Down
4 changes: 2 additions & 2 deletions api/registry/test/generic_scorer_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_create_generic_scorer_success(scorer_account):
payload = {"name": "Test Community", "external_scorer_id": "0x0000"}

response = client.post(
"/registry/communities/generic",
"/registry/scorer/generic",
json.dumps(payload),
content_type="application/json",
HTTP_AUTHORIZATION=f"Token {secret}",
Expand Down Expand Up @@ -116,7 +116,7 @@ def test_create_generic_scorer_no_name(scorer_account):
payload = {"name": "", "external_scorer_id": "0x0000"}

response = client.post(
"/registry/communities/generic",
"/registry/scorer/generic",
json.dumps(payload),
content_type="application/json",
HTTP_AUTHORIZATION=f"Token {secret}",
Expand Down

0 comments on commit b2ac5f8

Please sign in to comment.