sveltekit-api-julia/www/public/api/post.php
2022-11-14 21:41:41 +01:00

8 lines
193 B
PHP

<?php
$response["name"] = "Henrik";
$response["age"] = 11;
header('Access-Control-Allow-Origin: *'); // http://localhost
header('Content-Type: application/json');
echo json_encode($response);