httpd: Decouple repo stats from tree endpoint
2 files changed
+43
-31
a9b94b0a
→
854fc9af
modified radicle-httpd/src/api/json.rs
@@ -19,7 +19,7 @@ use radicle::prelude::NodeId;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -74,7 +74,7 @@ pub fn blob_content<T: AsRef<[u8]>>(blob: &Blob<T>) -> String {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -98,7 +98,6 @@ pub(crate) fn tree(tree: &Tree, path: &str, stats: &Stats) -> Value {
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/projects.rs
@@ -54,6 +54,10 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -230,15 +234,10 @@ async fn history_handler(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -430,8 +429,7 @@ async fn tree_handler(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -441,6 +439,19 @@ async fn tree_handler(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1101,8 +1112,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -1152,13 +1162,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -1344,6 +1348,25 @@ mod routes {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1386,11 +1409,6 @@ mod routes {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -1428,11 +1446,6 @@ mod routes {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|