+ $path_info =~ m!\A/(.+?)/([a-f0-9]+)/s/\z! and
+ ($ctx->{git} = $self->{"\0$1"}) and
+ return PublicInbox::ViewVCS::show($ctx, $2);
+
+ # snapshots:
+ if ($path_info =~ m!\A/(.+?)/snapshot/([^/]+)\z! and
+ ($ctx->{git} = $self->{"\0$1"})) {
+ $ctx->{wcr} = $self;
+ return PublicInbox::RepoSnapshot::srv($ctx, $2) // r(404);
+ }
+
+ # enforce trailing slash: