<?php
require_once __DIR__ . '/../../api-user-check.php';
require_once __DIR__ . '/../../php/locations/locations.php';

$loc = $_GET['loc'] ?? false;

$match = Locations::get_peer_locations($loc);

header('Content-Type: application/json');
echo json_encode($match);
