mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
11 lines
267 B
Ruby
11 lines
267 B
Ruby
class API::VersionController < API::ApiController
|
|
before_action :authenticate_user!
|
|
|
|
def show
|
|
authorize :version
|
|
package = File.read('package.json')
|
|
version = JSON.parse(package)['version']
|
|
render json: { version: version }, status: :ok
|
|
end
|
|
end
|