addRoute('GET', '/hello[/{name}]', [\Lubian\NoFramework\Action\Hello::class, 'handle']); $r->addRoute('GET', '/another-route', [\Lubian\NoFramework\Action\Another::class, 'handle']); };