mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-23 11:26:16 +00:00
api/0/version outputs git commit
This commit is contained in:
@@ -1042,6 +1042,7 @@ static int dispatch(struct mg_connection *conn, const char *uri)
|
||||
JsonNode *json = json_mkobject();
|
||||
|
||||
json_append_member(json, "version", json_mkstring(VERSION));
|
||||
json_append_member(json, "git", json_mkstring(GIT_VERSION));
|
||||
CLEANUP;
|
||||
return (json_response(conn, json));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user