3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Add an api_version property to /farm.json.

This commit is contained in:
Michael Stenta 2019-03-06 16:21:46 -05:00
parent 2a98a288ee
commit 30710d5d9a

View file

@ -5,6 +5,8 @@
* Farm API module.
*/
define('FARM_API_VERSION', '1.0');
/**
* Implements hook_permission().
*/
@ -40,6 +42,7 @@ function farm_api_info() {
$info = array(
'name' => $conf['site_name'],
'url' => $base_url,
'api_version' => FARM_API_VERSION,
);
if (!empty($user->uid)) {
$info['user'] = array(