Commit 066c5d1d by John Doe

updated to new joule api changes and fixed interface url

parent 4100c2b1
...@@ -51,7 +51,7 @@ module Joule ...@@ -51,7 +51,7 @@ module Joule
def module_schemas def module_schemas
begin begin
resp = self.class.get("#{@url}/modules.json") resp = self.class.get("#{@url}/modules.json?statistics=1")
return nil unless resp.success? return nil unless resp.success?
items = resp.parsed_response items = resp.parsed_response
# if the site exists but is not a joule server... # if the site exists but is not a joule server...
......
...@@ -87,7 +87,7 @@ Rails.application.configure do ...@@ -87,7 +87,7 @@ Rails.application.configure do
config.interface_url_template = lambda do |id| config.interface_url_template = lambda do |id|
#return "http://#{id}.interfaces.wattsworth.local" #return "http://#{id}.interfaces.wattsworth.local"
return "http://wattsworth.local/api/interfaces/#{id}" return "http://wattsworth.localhost/api/interfaces/#{id}/"
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment