diff --git a/public/index.php b/public/index.php index 30ae2ad..26b2571 100644 --- a/public/index.php +++ b/public/index.php @@ -101,6 +101,20 @@ if($reqPath === '/metadata') { Stopwatch::start(); $resp = new stdClass; + if($_SERVER['HTTP_HOST'] === 'mii.flashii.net') { + $resp->type = 'object'; + $resp->content_type = new stdClass; + $resp->content_type->string = 'text/meow'; + $resp->content_type->type = 'text'; + $resp->content_type->subtype = 'meow'; + $resp->title = 'Update your URLs: mii.flashii.net -> uiharu.flashii.net'; + $resp->description = 'Update your URLs: mii.flashii.net -> uiharu.flashii.net'; + $resp->site_name = 'Deprecation notice'; + $resp->took = 35.1; + echo json_encode($resp); + return; + } + if($reqMethod === 'POST') { $targetUrl = substr((string)file_get_contents('php://input'), 0, 1000); } else {