Skip to content

Commit

Permalink
Set response class of /count to plain text
Browse files Browse the repository at this point in the history
  • Loading branch information
edmondchuc committed Aug 3, 2023
1 parent 23b63fa commit 6953a30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prez/routers/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
router = APIRouter(tags=["Object"])


@router.get("/count", summary="Get object's statement count")
@router.get(
"/count", summary="Get object's statement count", response_class=PlainTextResponse
)
def count_route(
curie: str,
inbound: str = Query(
Expand Down

0 comments on commit 6953a30

Please sign in to comment.