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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user