+
+sub get_index {
+ my ($ctx, $cgi, $top) = @_;
+ require PublicInbox::Feed;
+ [ '200 OK', { 'Content-Type' => 'text/html' },
+ PublicInbox::Feed->generate_html_index({
+ git_dir => $ctx->{git_dir},
+ listname => $ctx->{listname},
+ pi_config => $pi_config,
+ cgi => $cgi,
+ top => $top,
+ })
+ ];
+}