Skip to content

Commit

Permalink
Fix redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
raimannma committed Nov 27, 2024
1 parent 746bdcd commit de94d34
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions deadlock_analytics_api/routers/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,9 @@ class MatchSearchResult(BaseModel):
deprecated=True,
include_in_schema=False,
)
def match_search_ids() -> RedirectResponse:
return RedirectResponse(
url="/v1/matches/search", status_code=HTTP_301_MOVED_PERMANENTLY
)
def match_search_ids(req: Request) -> RedirectResponse:
url = req.url_for("match_search").include_query_params()
return RedirectResponse(url=url, status_code=HTTP_301_MOVED_PERMANENTLY)


@router.get(
Expand Down

0 comments on commit de94d34

Please sign in to comment.