Add version endpoint

This commit is contained in:
Lars Lehmann committed 2022-04-25 22:44:41 +02:00
1 parent 374cc64601
commit 76ec0e888b
2 files changed
+25

No files matched your search

+4
View File
@@ -1472,6 +1472,10 @@ if (isset($_GET['query'])) {
'solr_documents' => $solr_documents
));
break;
case "version":
echo json_encode(array(
'version' => $GLOBALS['MAILCOW_GIT_VERSION']
));
}
}
break;