summaryrefslogtreecommitdiff
path: root/app/controllers/projects/settings
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/projects/settings
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/projects/settings')
-rw-r--r--app/controllers/projects/settings/badges_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/settings/badges_controller.rb b/app/controllers/projects/settings/badges_controller.rb
index f7b70dd4b7b..7887bee49c5 100644
--- a/app/controllers/projects/settings/badges_controller.rb
+++ b/app/controllers/projects/settings/badges_controller.rb
@@ -1,12 +1,12 @@
module Projects
module Settings
class BadgesController < Projects::ApplicationController
- include GrapeRouteHelpers::NamedRouteMatcher
+ include API::Helpers::RelatedResourcesHelpers
before_action :authorize_admin_project!
def index
- @badge_api_endpoint = api_v4_projects_badges_path(id: @project.id)
+ @badge_api_endpoint = expose_url(api_v4_projects_badges_path(id: @project.id))
end
end
end