wco_email 0.1.1.128 → 0.1.1.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 025ff4955a77f333746897b670ad1574b532142e64bf417a4c1d0ae81ca17f7f
4
- data.tar.gz: 051f4eea4797e4e19b95b74fcbea2629b63a76ded45e68f93f900ab4a0d3401c
3
+ metadata.gz: d4306844ca432b1e549da54aa6843a3e4021286fce0818e5ec06f64b111503a4
4
+ data.tar.gz: 499f3d3bdbd01c684a2a2f6853aec7defc2de4c18a484b4bc47ace393644f544
5
5
  SHA512:
6
- metadata.gz: e8fea90bae310543a214e16ebd1929729c818bf56d955e7912eb28b0713b9229e3b4b8f8581daf11cf3e26329a4925a74fef658c380015d176c8415616fc25dc
7
- data.tar.gz: 932e0807f1248412782b36e4db7ef7bf8d9ea79574c0ae40230a53bae5f57683f652ef2383c956cdee1c814c5fe3275962e9ed23110c7fb5faff0a3f4fbea5e7
6
+ metadata.gz: f01e756ce137b92cbdf2f661309b2269b5d9d1034904926a78b0a8d3f2b8fcc827dbac5c052855e20768c4fa8813543a119e9e4155c332853e69cff4f465ccb5
7
+ data.tar.gz: 7976429d5d4077ec4918e78671c8945fa07f82029d7e319f0117136db241a68a3d2a589832417c8150e2b181df2eaba8e64e1f92b624f7fa64c54ae080ebb9b9
@@ -40,6 +40,12 @@ class WcoEmail::Api::MessagesController < WcoEmail::ApiController
40
40
  render status: :ok, json: { status: :ok }
41
41
  end
42
42
 
43
+ def postal_webhook
44
+ puts! params, 'params'
45
+ ExceptionNotifier.notify_exception( params )
46
+ end
47
+
48
+
43
49
  end
44
50
 
45
51
 
data/config/routes.rb CHANGED
@@ -17,8 +17,9 @@ WcoEmail::Engine.routes.draw do
17
17
  get 'api/email_templates', to: '/wco_email/api/email_templates#index'
18
18
  get 'api/tags/:tagname/conversations', to: '/wco_email/api/conversations#index'
19
19
 
20
- post 'api/messages/from-postal/:secret', to: '/wco_email/api/messages#create_postal' ## json
21
- post 'api/messages/from-ses', to: '/wco_email/api/messages#create_ses' ## raw, and message already in bucket
20
+ post 'api/messages/from-postal/:secret', to: '/wco_email/api/messages#create_postal' ## json
21
+ post 'api/messages/from-ses', to: '/wco_email/api/messages#create_ses' ## raw, and message already in bucket
22
+ post 'api/messages/postal-webhook/:secret', to: '/wco_email/api/messages#postal_webhook'
22
23
 
23
24
  resources :configs
24
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.128
4
+ version: 0.1.1.129
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev