Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…exer into asset-packs-index
  • Loading branch information
Willy-JL committed Jul 4, 2024
2 parents 9bb5137 + 93aae63 commit 1414c28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def main() -> None:
logger.addHandler(handler)
uvicorn.run(
"main:app",
host="0.0.0.0",
host="127.0.0.1",
port=settings.port,
workers=settings.workers,
log_config=None,
Expand Down
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)


def setup_routes(prefix: str, index):
@router.get(prefix + "/directory.json")
@router.get(prefix)
Expand Down

0 comments on commit 1414c28

Please sign in to comment.