debian-mirror-gitlab/app/controllers/groups/settings/badges_controller.rb

14 lines
303 B
Ruby
Raw Normal View History

2018-05-09 12:01:36 +05:30
module Groups
module Settings
class BadgesController < Groups::ApplicationController
include GrapeRouteHelpers::NamedRouteMatcher
before_action :authorize_admin_group!
def index
@badge_api_endpoint = api_v4_groups_badges_path(id: @group.id)
end
end
end
end