trabajo-afectivo/app/controllers/version_controller.rb

14 lines
288 B
Ruby

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class VersionController < ApplicationController
prepend_before_action { authentication_check && authorize! }
# GET /api/v1/version
def index
render json: {
version: Version.get
}
end
end