Add version endpoint
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user