Module: RailsNew::Api
Constant Summary collapse
- API_SERVER =
ENV['RAILS_NEW_API_SERVER'] || "https://rails-new.herokuapp.com"
Instance Method Summary collapse
Instance Method Details
#template_url_for(template_key) ⇒ Object
7 8 9 |
# File 'lib/rails_new/api.rb', line 7 def template_url_for(template_key) "#{API_SERVER}/api/v1/templates/#{template_key}.json" end |