14 lines
294 B
Ruby
14 lines
294 B
Ruby
|
# Copyright (C) 2012-2017 Zammad Foundation, http://zammad-foundation.org/
|
||
|
|
||
|
class VersionController < ApplicationController
|
||
|
before_action { authentication_check(permission: 'admin.version') }
|
||
|
|
||
|
# GET /api/v1/version
|
||
|
def index
|
||
|
render json: {
|
||
|
version: Version.get
|
||
|
}
|
||
|
end
|
||
|
|
||
|
end
|