Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
lumen-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
066c5d1d
authored
Nov 16, 2018
by
John Doe
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
updated to new joule api changes and fixed interface url
parent
4100c2b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/adapters/joule/backend.rb
config/environments/local.rb
app/adapters/joule/backend.rb
View file @
066c5d1d
...
...
@@ -51,7 +51,7 @@ module Joule
def
module_schemas
begin
resp
=
self
.
class
.
get
(
"
#{
@url
}
/modules.json"
)
resp
=
self
.
class
.
get
(
"
#{
@url
}
/modules.json
?statistics=1
"
)
return
nil
unless
resp
.
success?
items
=
resp
.
parsed_response
# if the site exists but is not a joule server...
...
...
config/environments/local.rb
View file @
066c5d1d
...
...
@@ -87,7 +87,7 @@ Rails.application.configure do
config
.
interface_url_template
=
lambda
do
|
id
|
#return "http://#{id}.interfaces.wattsworth.local"
return
"http://wattsworth.local
/api/interfaces/
#{
id
}
"
return
"http://wattsworth.local
host/api/interfaces/
#{
id
}
/
"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment