diff --git a/.fabmanager-version b/.fabmanager-version deleted file mode 100644 index e261122d5..000000000 --- a/.fabmanager-version +++ /dev/null @@ -1 +0,0 @@ -2.6.7 diff --git a/CHANGELOG.md b/CHANGELOG.md index f40d21283..4c5a94556 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Changelog Fab Manager +- Nom using standard [package.json](package.json) file to save application version number - Fix a bug: on small screens, display of button "change group" overflow ## v2.6.7 2018 October 4 diff --git a/app/controllers/api/version_controller.rb b/app/controllers/api/version_controller.rb index be963ebdb..6feb258cb 100644 --- a/app/controllers/api/version_controller.rb +++ b/app/controllers/api/version_controller.rb @@ -4,7 +4,8 @@ class API::VersionController < API::ApiController def show authorize :version - version = File.read('.fabmanager-version') - render json: {version: version}, status: :ok + package = File.read('package.json') + version = JSON.parse(package)['version'] + render json: { version: version }, status: :ok end -end \ No newline at end of file +end