mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-31 01:00:47 +08:00
httpd: Copy RADICLE_VERSION to /
Also deprecates it on `api/v1/`
This commit is contained in:
@@ -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": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user