1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/controllers/api/version_controller.rb

10 lines
227 B
Ruby
Raw Normal View History

class API::VersionController < API::ApiController
before_action :authenticate_user!
def show
authorize :version
version = File.read('.fabmanager-version')
render json: {version: version}, status: :ok
end
end