Skip to content

Commit

Permalink
Redirect to firmware index on root
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Jun 26, 2024
1 parent c4ba45e commit fc5212b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions indexer/src/directories.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
lock = asyncio.Lock()


@router.get("/")
async def root_request():
"""
API root, redirect to firmware index
"""
return RedirectResponse("/firmware", status_code=303)


@router.get("/{directory}/directory.json")
@router.get("/{directory}")
async def directory_request(directory):
Expand Down

0 comments on commit fc5212b

Please sign in to comment.