class EmailController < ApplicationController skip_before_action :verify_authenticity_token def index end def create @email = Email.create(message_params) render json: {}, status: :created end private def message_params params.permit(:email) end end