feature: first check point

This commit is contained in:
2025-02-24 20:03:36 +07:00
parent a7afbd69fb
commit 6865e353e6
6 changed files with 809 additions and 4 deletions

View File

@@ -106,6 +106,18 @@ class TourismController extends Controller
}
}
public function getAllLocation()
{
$locations = Tourism::whereNotNull('longitude')
->whereNotNull('latitude')
->select('longitude', 'latitude')
->get();
return response()->json([
'data' => $locations
]);
}
/**
* Display the specified resource.
*/