Sha256: 743ad108e1883c2f69edb11d2e22e4e45edcc0121c4e8e291c9d3c3dda8b59fa

Contents?: true

Size: 365 Bytes

Versions: 16

Compression:

Stored size: 365 Bytes

Contents

module Workarea
  module Api
    module Storefront
      class EmailSignupsController < Api::Storefront::ApplicationController
        def show
          @email_signup = Workarea::Storefront::EmailSignupsViewModel.new
        end

        def create
          @signup = Workarea::Email::Signup.create!(email: params[:email])
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
workarea-api-4.5.6 storefront/app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-storefront-4.5.6 app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-4.5.5 storefront/app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-storefront-4.5.5 app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-4.5.4 storefront/app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-storefront-4.5.4 app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-4.5.3 storefront/app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-storefront-4.5.3 app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-4.5.2 storefront/app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-storefront-4.5.2 app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-4.5.0 storefront/app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-storefront-4.5.0 app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-4.4.7 storefront/app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-storefront-4.4.7 app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-4.4.6 storefront/app/controllers/workarea/api/storefront/email_signups_controller.rb
workarea-api-storefront-4.4.6 app/controllers/workarea/api/storefront/email_signups_controller.rb