Fix other prefix.
This commit is contained in:
parent
e234f89859
commit
31e142131c
1 changed files with 1 additions and 1 deletions
|
@ -70,6 +70,6 @@ async def push_nar(req: Request) -> Response:
|
||||||
@app.route("/v2/remote/{path:path}")
|
@app.route("/v2/remote/{path:path}")
|
||||||
async def pull_nar(req: Request) -> Response:
|
async def pull_nar(req: Request) -> Response:
|
||||||
try:
|
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:
|
except FileNotFoundError:
|
||||||
return Response(content="Gone", status_code=404)
|
return Response(content="Gone", status_code=404)
|
||||||
|
|
Loading…
Reference in a new issue