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
@@ -11,6 +11,11 @@ module Suppliers
render json: @employees
end
def suppliers
@suppliers = current_employee.suppliers
render json: @suppliers, serializer: Suppliers::SupplierSerializer, is_collection: true
end
# GET /employees/1
# GET /employees/1.json
def show