httpd: Add apiVersion to root handler and node information
This will help consumers of the httpd to check if they are on the right version of the API
3 files changed
+8
-5
d04d9d7d
→
5ffbf754
modified radicle-httpd/src/api.rs
@@ -34,7 +34,9 @@ use crate::api::error::Error;
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1.rs
@@ -11,7 +11,7 @@ use axum::routing::get;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -34,7 +34,8 @@ async fn root_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/node.rs
@@ -12,7 +12,7 @@ use radicle::node::{policy, AliasStore, Handle, NodeId, DEFAULT_TIMEOUT};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -47,7 +47,7 @@ async fn node_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|