adding teacher profiles
This commit is contained in:
@ -20,8 +20,8 @@ class Entity < ApplicationRecord
|
||||
end
|
||||
|
||||
def self.response(path = "")
|
||||
host = Rails.credentials.weather_dev
|
||||
host = Rails.credentials.weather_pro if Rails.env.production?
|
||||
host = Rails.application.credentials.weather_dev
|
||||
host = Rails.application.credentials.weather_pro if Rails.env.production?
|
||||
token = Rails.application.credentials.weather_token
|
||||
begin
|
||||
all = RestClient.get( "#{host}:8123/api/states#{path}" ,
|
||||
|
Reference in New Issue
Block a user