Fix other prefix.

This commit is contained in:
Sarah 2021-10-18 15:39:10 +02:00
parent e234f89859
commit 31e142131c
No known key found for this signature in database
GPG key ID: 708F7ACE058F0186

View file

@ -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)