added email notification when order arives

This commit is contained in:
Senad Uka
2015-08-09 10:58:14 +02:00
parent 8b6a62b7e7
commit 2ff5ceabd2
4 changed files with 30 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ require 'json'
require 'sinatra/cookies'
require 'elasticsearch'
require 'xxhash'
require 'pony'
Dir[File.dirname(__FILE__) + '/models/*.rb'].each {|file| require file }
@@ -18,7 +19,7 @@ before do
# domain is allowed
headers 'Access-Control-Allow-Origin' => 'http://localhost:3001',
'Access-Control-Allow-Methods' => ['OPTIONS', 'GET', 'POST','PUT'],
'Access-Control-Allow-Methods' => ['OPTIONS', 'GET', 'POST','PUT'].join(','),
'Access-Control-Allow-Headers' => 'Origin, X-Requested-With, Content-Type, Accept',
'Access-Control-Expose-Headers' => 'X-Total-Count',
'Access-Control-Allow-Credentials' => 'true'