sveltekit-api-julia/www/public/api/post.php

8 lines
193 B
PHP
Raw Permalink Normal View History

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