Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
js: removed ending slash from API_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
vitoravelino committed Jan 25, 2018
1 parent 98d86aa commit 485459d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Vue.use(VueResource);
const customActions = {
teamTypeahead: {
method: 'GET',
url: '/namespaces/typeahead/{teamName}',
url: 'namespaces/typeahead/{teamName}',
},
validate: {
method: 'GET',
Expand All @@ -17,7 +17,7 @@ const customActions = {
const oldCustomActions = {
changeVisibility: {
method: 'PUT',
url: '/namespaces/{id}/change_visibility',
url: 'namespaces/{id}/change_visibility',
},
};

Expand Down
3 changes: 2 additions & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def app_relative_url_root
end

def app_path
File.join(app_host, app_relative_url_root)
path = File.join(app_host, app_relative_url_root)
path.chomp("/")
end

def js_route
Expand Down

0 comments on commit 485459d

Please sign in to comment.