Files
sx-fc/app/views/api/authenticate/create_cashier.json.jbuilder

18 lines
404 B
Ruby

if @status == true
json.status :true
json.session_token @employee.token_session
json.name @employee.name
json.role @employee.role
if @shift_id
json.shift_id @shift_id
end
if @error_message
json.error_message @error_message
json.terminals do
json.array! @terminals, :id, :name, :is_active, :is_currently_login
end
end
else
json.status :false
json.error_message @error_message
end