Skip to content

Commit 2bc11fb

Browse files
committed
ADD: plain version to status info (only for RXP status page)
1 parent d143ebe commit 2bc11fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ struct StatusParams {
4545
struct StatusInfo {
4646
success: bool,
4747
message: String,
48+
version: String,
4849
tech: String,
4950
timestamp: String,
5051
lastmod: String,
@@ -60,6 +61,7 @@ async fn get_status(Query(params): Query<StatusParams>) -> Response {
6061
let status = StatusInfo {
6162
success: true,
6263
message: "OK".to_string(),
64+
version: format!("{}", version()),
6365
tech: tech.to_string(),
6466
timestamp: timestamp.to_string(),
6567
lastmod: lastmod.to_string(),

0 commit comments

Comments
 (0)