def get_index(self): """Возвращает список всех сотрудников""" self.set_header('Content-Type', 'application/json') items = ItemList.get_index() response = json_serialize(items) self.write(response)