Migrate `/projects`: `remotes`, `remote`, `blob`, `readme` handlers
modified radicle-crypto/src/lib.rs
@@ -19,7 +19,7 @@ mod cyphernet;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/error.rs
@@ -67,6 +67,10 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/projects.rs
@@ -13,8 +13,10 @@ use tower_http::set_header::SetResponseHeaderLayer;
|
|
|
|
|
|
| + | |
|
|
|
|
| + | |
|
|
|
|
|
@@ -39,6 +41,10 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -183,7 +189,7 @@ async fn commit_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -221,11 +227,7 @@ async fn tree_handler(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -236,6 +238,77 @@ async fn tree_handler(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/storage.rs
@@ -6,6 +6,7 @@ use std::ops::Deref;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -184,11 +185,12 @@ impl<V> From<Remotes<V>> for HashMap<RemoteId, Refs> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle/src/storage/refs.rs
@@ -8,6 +8,7 @@ use std::path::Path;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -62,7 +63,7 @@ impl Error {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -197,11 +198,12 @@ impl DerefMut for Refs {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| + | |
|
|
| - | |
| + | |
|
|
|
|
|