wco_email 0.1.1.2 → 0.1.1.3
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: 154abcf8ea105d1ed36ba09b362df1e18b305f9c711394f16c6a48749fda8796
|
4
|
+
data.tar.gz: 60141e3205cfe7ffcf5489afa0f8c4f6b2d562520da56190b2bbfd16b11cfcc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec0868b904e2aeade137d012d4221ae01f3e873e58b065879f66fbb0c5365af3324f16a3763f05e648d626f90e73132de380743eaa431c1ddbacc027973c81e1
|
7
|
+
data.tar.gz: 9ce00adac76e64eae799a3d433b427f21c03fee0a6c7e861bbe87d46bcf98e7f11b204eae96071da7b8c5ca0b4dfe025f7b894124e1c1065e001a46ef2d6c921
|
@@ -1,7 +1,18 @@
|
|
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
|
+
stub = WcoEmail::MessageStub.create!({
|
9
|
+
bucket: params[:bucket],
|
10
|
+
object_key: params[:object_key],
|
11
|
+
})
|
12
|
+
|
13
|
+
WcoEmail::MessageIntakeJob.perform_async( stub.id.to_s )
|
14
|
+
render status: :ok, json: { status: :ok }
|
15
|
+
end
|
5
16
|
|
6
17
|
##
|
7
18
|
## 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
|