use jobs to devise emails delivery

This commit is contained in:
João Geonizeli
2021-08-18 00:20:58 -03:00
parent d2b361ff69
commit 198f9f675b
8 changed files with 37 additions and 11 deletions

View File

@@ -1,4 +1,6 @@
# frozen_string_literal: true
require "sidekiq/web"
Rails.application.routes.draw do
devise_for :users
devise_for :admin_users
@@ -16,9 +18,15 @@ Rails.application.routes.draw do
root to: "home#index"
get "*all" => "home#index", constraints: lambda { |req|
req.path.exclude?("playground") && req.path.exclude?("rails")
["playground", "rails", "sidekiq"].filter do |path|
req.path != path
end.blank?
}
post "/graphql", to: "graphql#execute"
mount GraphqlPlayground::Rails::Engine, at: "/playground", graphql_path: "/graphql" if Rails.env.development?
if Rails.env.development?
mount GraphqlPlayground::Rails::Engine, at: "/playground", graphql_path: "/graphql"
mount Sidekiq::Web => "/sidekiq"
end
end