addRoute('GET', '/hello[/{name}]', Hello::class); $r->addRoute('GET', '/other', [Other::class, 'handle']); $r->addRoute('GET', '/', fn (RI $r) => $r->withStatus(302)->withHeader('Location', '/hello')); };