From e4020eaea1364c23e8078c5ea7e3a5b31bb15f25 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Wed, 22 Mar 2023 17:40:35 +0100 Subject: [PATCH] httpd: Add `path` property to `CodeLocation` For the web client to be able to show file we need to provide the web client with the file path. Signed-off-by: Sebastian Martinez --- radicle-httpd/src/api/v1/projects.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/radicle-httpd/src/api/v1/projects.rs b/radicle-httpd/src/api/v1/projects.rs index ff6a7e31e..2fcc7ad38 100644 --- a/radicle-httpd/src/api/v1/projects.rs +++ b/radicle-httpd/src/api/v1/projects.rs @@ -2089,7 +2089,8 @@ mod routes { "inline": [ { "location": { - "blob": HEAD, + "blob": "82eb77880c693655bce074e3dbbd9fa711dc018b", + "path": "./README.md", "commit": HEAD, "lines": { "start": 1, @@ -2148,7 +2149,8 @@ mod routes { "inline": [ { "location": { - "blob": HEAD, + "blob": "82eb77880c693655bce074e3dbbd9fa711dc018b", + "path": "./README.md", "commit": HEAD, "lines": { "start": 1,