Move supplier full pull to being an api for the ember app and handle login and authorization a little bit better (should be even a lot better in the future)

This commit is contained in:
2020-03-03 17:11:57 -05:00
parent a7e771557d
commit 51748d5783
15 changed files with 55 additions and 22 deletions
+6
View File
@@ -1,5 +1,11 @@
class SupplierController < Suppliers::ApplicationController
def home
if Rails.env.development?
binding.pry
redirecto_to "http://localhost:4202/supplier#{params[:other]}"
else
render html: File.read(Rails.root.join('public/supplier/index.html'))
end
end
=begin
# GET /suppliers/1/active_orders