1 package Gitalist::Controller::LegacyURI;
4 use namespace::autoclean;
6 BEGIN { extends 'Gitalist::Controller' }
8 sub handler : Chained('/base') PathPart('legacy') Args() {
12 sub repository_index : Chained('/base') Args(0) {
13 my ( $self, $c ) = @_;
15 $c->response->content_type('text/plain');
17 join "\n", map $_->name, $c->model()->repositories->flatten
18 ) or die 'No repositories found in '. $c->model->repo_dir;
21 __PACKAGE__->meta->make_immutable;