YAGS/web/API/stations.php

11 lines
280 B
PHP

<?php
namespace API\station;
function APIinfo($params) {
$station = new \DAL\station()
$station->find("apiKey", $params["key"])
return ["id" => $station->id->get(), "name" => $station->name->get(), "locator" => $station->locator->get()];
}