openSUSE/open-build-service

View on GitHub
src/api/app/controllers/about_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class AboutController < ApplicationController
  validate_action index: { method: :get, response: :about }
  skip_before_action :extract_user
  skip_before_action :require_login
  before_action :set_response_format_to_xml

  def index
    @api_revision = CONFIG['version'].to_s
    @last_deployment = Git::LAST_DEPLOYMENT
    @commit = Git::COMMIT
  end
end