core: add version

This commit is contained in:
Vaxry
2025-04-12 20:10:52 +01:00
parent e85d7f611b
commit 123e6fafb1
5 changed files with 10 additions and 2 deletions

View File

@@ -234,6 +234,7 @@ void CServerHandler::serveStop(const Pistache::Http::Request& req, Pistache::Htt
page.add("challengeDifficulty", CTinylatesProp(std::to_string(DIFFICULTY)));
page.add("challengeNonce", CTinylatesProp(NONCE));
page.add("checkpointVersion", CTinylatesProp(CHECKPOINT_VERSION));
response.send(Pistache::Http::Code::Ok, page.render().value_or("error"));
}