Skip to content

Commit

Permalink
refactor(api.py): /trends -> /trend
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpomerenke committed Mar 25, 2024
1 parent 445b8bf commit d413db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend-python/media_impact_monitor/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_events(q: EventSearch) -> tuple[EventSearch, list[Event]]:
raise HTTPException(status_code=400, detail=str(e))


@app.post("/trends")
@app.post("/trend")
def get_trend(q: TrendSearch) -> tuple[TrendSearch, list[Count]]:
"""Fetch media item counts from the Media Impact Monitor database."""
try:
Expand Down

0 comments on commit d413db8

Please sign in to comment.