async def update(request, response): controller = Controller().instance() iou_license = controller.iou_license iou_license.update(request.json) controller.save() response.json(iou_license) response.set_status(201)
async def update(request, response): controller = Controller().instance() gns3_vm = controller.gns3vm await gns3_vm.update_settings(request.json) controller.save() response.json(gns3_vm) response.set_status(201)