only respond at webmanifest ednpoint

This commit is contained in:
Mike Macgirvin 2023-06-27 08:37:42 +10:00
parent 559dadb023
commit bc011f94db

View file

@ -10,6 +10,9 @@ class Manifest extends Controller
public function init()
{
if ($_REQUEST['module_format'] !== 'webmanifest') {
http_status_exit(418, "I'm a teapot");
}
$ret = [
'name' => System::get_project_name(),
'short_name' => System::get_project_name(),