1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/app/controllers/api/version_controller.rb

14 lines
288 B
Ruby
Raw Normal View History

# 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