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:
@@ -1,4 +1,7 @@
|
||||
class Suppliers::EmployeeSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
attributes :name, :email, :manager, :active, :color
|
||||
has_many :suppliers, serializer: Suppliers::SupplierSerializer
|
||||
|
||||
related_link_for :suppliers
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Suppliers::EmployeeShiftSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
attributes :start_from, :end_on
|
||||
attributes :start_from, :end_on, :description, :full_day
|
||||
has_one :supplier, serializer: Suppliers::SupplierSerializer
|
||||
has_one :employee, serializer: Suppliers::EmployeeSerializer
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user