Okay, a simpler fix than a router:
1 . Move the content into a folder /public
2 . Alter the glitch.json
to be
{
"install": "echo 'No install needed'",
"start": "php -S 0.0.0.0:${PORT} -t public"
}
A router would be needed for more complex rules, such as a custom 404 page.