settings = $settingsService; $this->render = $renderService; } public function publish(Request $request) { $result = $this->render->publishAll(); return response()->json($result)->header('Content-Type', 'application/json'); } public function sync(Request $request) { $body = json_decode($request->getContent()); $result = $this->settings->sync($body); return response()->json($result)->header('Content-Type', 'application/json'); } public function navSync(Request $request) { $body = json_decode($request->getContent()); $result = $this->settings->navSync($body); return response()->json($result)->header('Content-Type', 'application/json'); } }