From 3c40a32fba67ec55744c7b40183e83d6adbce9b6 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Tue, 29 Mar 2022 17:38:29 +0530 Subject: [PATCH] feat: expose source code url in build details meta endpoint --- src/meta.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/meta.rs b/src/meta.rs index 29063e6..6c218f2 100644 --- a/src/meta.rs +++ b/src/meta.rs @@ -23,6 +23,7 @@ use crate::{GIT_COMMIT_HASH, VERSION}; pub struct BuildDetails { pub version: &'static str, pub git_commit_hash: &'static str, + pub source_code: &'static str, } pub mod routes { @@ -47,6 +48,7 @@ async fn build_details() -> impl Responder { let build = BuildDetails { version: VERSION, git_commit_hash: GIT_COMMIT_HASH, + source_code: &crate::SETTINGS.source_code, }; HttpResponse::Ok().json(build) }