diff --git a/app/Controller/v3/LocationController.php b/app/Controller/v3/LocationController.php index 05d84a1..c1748c7 100644 --- a/app/Controller/v3/LocationController.php +++ b/app/Controller/v3/LocationController.php @@ -29,7 +29,7 @@ class LocationController extends BaseController { $lng = $this->request->input('lng',0); $lat = $this->request->input('lat',0); - return $this->success($this->locationService->getNearestMarket($lng,$lat)); + return $this->success(['market' => $this->locationService->getNearestMarket($lng,$lat)]); } public function getMarketListByLocation()