infra updates
This commit is contained in:
@@ -3,7 +3,7 @@ class SupplierController < Suppliers::ApplicationController
|
||||
if Rails.env.development?
|
||||
redirect_to "http://localhost:4202/supplier/#{params[:other]}"
|
||||
else
|
||||
render html: File.read(Rails.root.join('public/supplier/index.html'))
|
||||
redirect_to "https://supplier.mozo.bar/supplier/#{params[:other]}"
|
||||
end
|
||||
end
|
||||
=begin
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
||||
def passthru
|
||||
return show_404 alert: 'Test'
|
||||
send(params[:provider]) and return if available_action?(params[:provider])
|
||||
show_404
|
||||
# Or alternatively,
|
||||
# raise ActionController::RoutingError.new('Not Found')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user