version_controller.rb 302 B

12345678910111213
  1. # Copyright (C) 2012-2017 Zammad Foundation, http://zammad-foundation.org/
  2. class VersionController < ApplicationController
  3. prepend_before_action { authentication_check(permission: 'admin.version') }
  4. # GET /api/v1/version
  5. def index
  6. render json: {
  7. version: Version.get
  8. }
  9. end
  10. end