Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
httpd: Copy `RADICLE_VERSION` to `/`
Sebastian Martinez committed 1 year ago
commit 2e8b817d538ee0ebf910c3e86ace14fe22cde44f
parent 2fef0f5
1 file changed +3 -0
modified radicle-httpd/src/lib.rs
@@ -30,6 +30,8 @@ use radicle::Profile;

use tracing_extra::{tracing_middleware, ColoredStatus, Paint, RequestId, TracingInfo};

+
use crate::api::RADICLE_VERSION;
+

mod api;
mod axum_extra;
mod cache;
@@ -138,6 +140,7 @@ fn router(options: Options, profile: Profile) -> anyhow::Result<Router> {
async fn root_index_handler() -> impl IntoResponse {
    let response = serde_json::json!({
        "welcome": "Welcome to the radicle-httpd JSON API, this service doesn't serve the Radicle Explorer web client.",
+
        "version": format!("{}-{}", RADICLE_VERSION, env!("GIT_HEAD")),
        "path": "/",
        "links": [
            {