version_controller.rb 288 B

1234567891011121314
  1. # Copyright (C) 2012-2017 Zammad Foundation, http://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