From 31e142131c71b62fbf0bbcd0b48643d451685472 Mon Sep 17 00:00:00 2001 From: Sarah Date: Mon, 18 Oct 2021 15:39:10 +0200 Subject: [PATCH] Fix other prefix. --- peerix/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peerix/app.py b/peerix/app.py index 5182978..719a2b6 100644 --- a/peerix/app.py +++ b/peerix/app.py @@ -70,6 +70,6 @@ async def push_nar(req: Request) -> Response: @app.route("/v2/remote/{path:path}") async def pull_nar(req: Request) -> Response: try: - return StreamingResponse(await r_access.nar(f"remote/{req.path_params['path']}"), media_type="text/plain") + return StreamingResponse(await r_access.nar(f"v2/remote/{req.path_params['path']}"), media_type="text/plain") except FileNotFoundError: return Response(content="Gone", status_code=404)