mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-02 13:24:20 +01:00
0cd841da33
TODO: - events controller - availabilies controller - members controller - plans controller
14 lines
346 B
Ruby
14 lines
346 B
Ruby
# frozen_string_literal: true
|
|
|
|
# API Controller to get the fab-manager version
|
|
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
|