Browse Source

ADD 前端调用api地址从后端获取[bug]

pull/278/head
jasder 4 years ago
parent
commit
e8bbc7d856
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/settings_controller.rb

+ 1
- 1
app/controllers/settings_controller.rb View File

@@ -6,7 +6,7 @@ end

def api_urls
navigations = []
hash = Rails.application.config_for(:configuration)["api_url"]
hash = Rails.application.config_for(:configuration)["api_urls"]
hash.each do |key, value|
navigations << {"#{key}": value}
end


Loading…
Cancel
Save