2017-01-26 10:02:06 +00:00
|
|
|
# Copyright (C) 2012-2017 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
|
|
|
class VersionController < ApplicationController
|
2017-02-15 12:29:25 +00:00
|
|
|
prepend_before_action { authentication_check(permission: 'admin.version') }
|
2017-01-26 10:02:06 +00:00
|
|
|
|
|
|
|
# GET /api/v1/version
|
|
|
|
def index
|
|
|
|
render json: {
|
|
|
|
version: Version.get
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|