I've been following this blog post on how to set up an api-only Rails 5 application. One of the sections talks about creating a subdomain for your api
Rails.application.routes.draw do
constraints subdomain: "api" do
scope module: "api" do
require 'aws' | |
AWS.config(:access_key_id => 'XXXXX', :secret_access_key => 'XXXXX') | |
pipeline_id = 'XXXXXXX' | |
preset_id = 'XXXXXX' | |
s3 = AWS::S3.new | |
bin = s3.buckets['XXXXXX-in'] | |
bout = s3.buckets['XXXXXX-out'] |
I've been following this blog post on how to set up an api-only Rails 5 application. One of the sections talks about creating a subdomain for your api
Rails.application.routes.draw do
constraints subdomain: "api" do
scope module: "api" do