public function citymap() { $missionService = new MissionService(); $missions = $missionService->getMissions(); return view('main.home.map', compact("missions")); }
/** * Get observation data for a given mission * * @param $id * @return json */ public function getObservations($id) { $missionService = new \App\Services\MissionService(); $missionWithData = $missionService->getObservations($id); return response()->json($missionWithData); }