Sha256: 7ff7945d9ac12d1d230a2e78e4dba9a9f9b40fa2ae816884153968439ffec727
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
require_dependency "ishapi/application_controller" module Ishapi class EmailMessagesController < ApplicationController def receive if params[:secret] != AWS_SES_LAMBDA_SECRET render status: 400, json: { status: 400 } return end msg = Office::EmailMessage.new({ object_path: params[:object_path] }) if msg.save render status: :ok, json: { status: :ok } else render status: 400, json: { status: 400 } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems