Add my-schedule and some other things

This commit is contained in:
2015-08-17 19:13:35 +02:00
parent 2df1b38e8f
commit 9cadc3e94f
30 changed files with 139 additions and 23 deletions
@@ -0,0 +1,8 @@
module Employees
class EmployeeShiftsController < Employees::ApplicationController
def index
@employee_shifts = EmployeeShift.for_employee(current_employee).include_relation(:supplier)
render json: @employee_shifts, each_serializer: Employees::EmployeeShiftSerializer
end
end
end