version_controller.rb 289 B

1234567891011121314
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class VersionController < ApplicationController
  3. prepend_before_action { authentication_check && authorize! }
  4. # GET /api/v1/version
  5. def index
  6. render json: {
  7. version: Version.get
  8. }
  9. end
  10. end