mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
14 lines
288 B
Ruby
14 lines
288 B
Ruby
# frozen_string_literal: true
|
|
require 'version'
|
|
|
|
# API Controller to get the fab-manager version
|
|
class API::VersionController < API::ApiController
|
|
before_action :authenticate_user!
|
|
|
|
def show
|
|
authorize :version
|
|
|
|
render json: { version: Version.current }, status: :ok
|
|
end
|
|
end
|