Download public/api/lugares.php from chartManD/turitezo: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/chartManD/turitezo/resolve/main/public/api/lugares.php
- Command line
-
hf download hf://spaces/chartManD/turitezo/public/api/lugares.php
-
curl -L -o lugares.php https://huggingface.co/spaces/chartManD/turitezo/resolve/main/public/api/lugares.php
397 Bytes
| require_once "../../controllers/controller_place.php"; | |
| $objConPlaces = new ControllerPlace(); | |
| $resPlaces = $objConPlaces->getListPlaces(); | |
| if (!isset($resPlaces['message'])) { | |
| echo json_encode($resPlaces); | |
| die(); | |
| } else { | |
| $rawPlaces = array(); | |
| foreach ($resPlaces as $objPlace) { | |
| array_push($rawPlaces, $objPlace); | |
| } | |
| json_encode($rawPlaces); | |
| die(); | |
| } |