Skip to content

Commit

Permalink
Merge pull request #53 from observerly/feature/api/baseAPIRedirectRes…
Browse files Browse the repository at this point in the history
…ponse

feat: Added HTTP 302 Found status code to the base RedirectResponse.
  • Loading branch information
michealroberts authored Aug 10, 2022
2 parents 9d10590 + fe2173c commit 4aca789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

@app.get("/")
async def redirect_index():
response = RedirectResponse(url="{0}".format(settings.API_V1_STR))
response = RedirectResponse(url="{0}".format(settings.API_V1_STR), status_code=302)
return response


Expand Down

0 comments on commit 4aca789

Please sign in to comment.