summaryrefslogtreecommitdiff
path: root/app/controllers/groups
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2018-05-17 11:45:59 +0200
committerFrancisco Javier López <fjlopez@gitlab.com>2018-05-17 11:45:59 +0200
commit14032b8a85f42c89d86925c47bd3e10270779a46 (patch)
tree4fa61156654e09bf7993c990215501014c2d76f5 /app/controllers/groups
parentbf806712835869046c819f84ee515caa8829c10d (diff)
downloadgitlab-ce-14032b8a85f42c89d86925c47bd3e10270779a46.tar.gz
Fixed badge api endpoint route when relative_url is setfj-46411-fix-badge-api-endpoint-route-with-relative-url
Diffstat (limited to 'app/controllers/groups')
-rw-r--r--app/controllers/groups/settings/badges_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/groups/settings/badges_controller.rb b/app/controllers/groups/settings/badges_controller.rb
index edb334a3d88..ccbd0a3bc02 100644
--- a/app/controllers/groups/settings/badges_controller.rb
+++ b/app/controllers/groups/settings/badges_controller.rb
@@ -1,12 +1,12 @@
module Groups
module Settings
class BadgesController < Groups::ApplicationController
- include GrapeRouteHelpers::NamedRouteMatcher
+ include API::Helpers::RelatedResourcesHelpers
before_action :authorize_admin_group!
def index
- @badge_api_endpoint = api_v4_groups_badges_path(id: @group.id)
+ @badge_api_endpoint = expose_url(api_v4_groups_badges_path(id: @group.id))
end
end
end