14 lines
289 B
Ruby
14 lines
289 B
Ruby
# Copyright (C) 2012-2022 Zammad Foundation, https://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
|