GitNexus/gitnexus/test/fixtures/lang-resolution/nextjs-route-mapping/api/upload.php

4 lines
175 B
PHP

<?php
header('Content-Type: application/json');
if ($_SERVER['REQUEST_METHOD'] !== 'POST') { http_response_code(405); exit; }
echo json_encode(['status' => 'ok', 'id' => 1]);