diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-05-17 11:45:59 +0200 |
---|---|---|
committer | Francisco Javier López <fjlopez@gitlab.com> | 2018-05-17 11:45:59 +0200 |
commit | 14032b8a85f42c89d86925c47bd3e10270779a46 (patch) | |
tree | 4fa61156654e09bf7993c990215501014c2d76f5 /app/controllers/projects/settings | |
parent | bf806712835869046c819f84ee515caa8829c10d (diff) | |
download | gitlab-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.rb | 4 |
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 |