Skip to content

Commit

Permalink
Change url of email receive destination
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Dec 12, 2011
1 parent 580076a commit 0b12b56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.rb
Expand Up @@ -37,7 +37,7 @@
end

# Receive email via Mailgun on Heroku
post '/email/receive' do
post '/emails/receive' do
# Log some of this
puts "Received email from #{params['from']} to #{params['recipient']} with subject #{params['subject']}:"
puts "Stripped text: #{params['stripped-text']}"
Expand All @@ -51,6 +51,9 @@
"OK"
end

get '/emails' do
end

# Set config from local file for development (and use environment variables on Heroku)
if File.exists? 'configuration.yaml'
configuration = YAML.load_file('configuration.yaml')
Expand Down

0 comments on commit 0b12b56

Please sign in to comment.