wco_email 0.1.1.2 → 0.1.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61597801d89aaa1e36b55beaeea9acc706148ba6c1a83225770d979f02adc0b1
|
4
|
+
data.tar.gz: ae4dbd6690ecf5c61efb0bc3e4937f7ba1a40134e6b0a0f95da8588478a2301c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caea37456ead2787bb43eafb68d24c342ce0a7ef2f308a20b384d0fa80a7668f2a3dca58784cae0963b742b68bd56f091db91110823ddb83ac83985dd7060104
|
7
|
+
data.tar.gz: 75993b2dae7cca5d52992e76e24fe26b73496af6efe998ce2c287d6aab8efa7490dc89766ceb109c500ea8ed995bd8797070b0b659855327789cdb0e54353ad1
|
@@ -1,7 +1,20 @@
|
|
1
1
|
|
2
2
|
class WcoEmail::ApiController < ActionController::Base
|
3
3
|
|
4
|
-
before_action
|
4
|
+
before_action :check_credentials
|
5
|
+
skip_before_action :verify_authenticity_token
|
6
|
+
|
7
|
+
def create_email_message
|
8
|
+
puts! params, 'params'
|
9
|
+
|
10
|
+
stub = WcoEmail::MessageStub.create!({
|
11
|
+
bucket: params[:bucket],
|
12
|
+
object_key: params[:object_key],
|
13
|
+
})
|
14
|
+
|
15
|
+
WcoEmail::MessageIntakeJob.perform_async( stub.id.to_s )
|
16
|
+
render status: :ok, json: { status: :ok }
|
17
|
+
end
|
5
18
|
|
6
19
|
##
|
7
20
|
## private
|
@@ -1,18 +1,8 @@
|
|
1
1
|
|
2
|
-
class WcoEmail::MessagesController < WcoEmail::
|
2
|
+
class WcoEmail::MessagesController < WcoEmail::ApplicationController
|
3
3
|
|
4
4
|
before_action :set_lists, except: %i| show_iframe |
|
5
5
|
|
6
|
-
def create_from_ses
|
7
|
-
stub = WcoEmail::MessageStub.create!({
|
8
|
-
bucket: params[:bucket],
|
9
|
-
object_key: params[:object_key],
|
10
|
-
})
|
11
|
-
|
12
|
-
WcoEmail::MessageIntakeJob.perform_async( stub.id.to_s )
|
13
|
-
render status: :ok, json: { status: :ok }
|
14
|
-
end
|
15
|
-
|
16
6
|
def show
|
17
7
|
@message = WcoEmail::Message.find params[:id]
|
18
8
|
authorize! :show, @message
|