ADD 前端调用api地址从后端获取[bug]
This commit is contained in:
parent
9a0d7aa02a
commit
e8bbc7d856
|
@ -6,7 +6,7 @@ end
|
||||||
|
|
||||||
def api_urls
|
def api_urls
|
||||||
navigations = []
|
navigations = []
|
||||||
hash = Rails.application.config_for(:configuration)["api_url"]
|
hash = Rails.application.config_for(:configuration)["api_urls"]
|
||||||
hash.each do |key, value|
|
hash.each do |key, value|
|
||||||
navigations << {"#{key}": value}
|
navigations << {"#{key}": value}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue