refactor(rest) main.sendResponse -> sendResponse