]> git.donarmstrong.com Git - debbugs.git/blob - lib/Debbugs/Mojo/Controller/Bug.pm
add first start of mojolicious app (doesn't do much yet)
[debbugs.git] / lib / Debbugs / Mojo / Controller / Bug.pm
1 package Debbugs::Mojo::Controller::Bug;
2
3 use Mojo::Base 'Mojolicious::Controller';
4
5 use Debbugs::Bug;
6
7 sub show {
8     my $c = shift;
9     my $id = $c->stash('bug');
10     my $bug = Debbugs::Bug->new(bug => $id,
11                                 schema => $c->db
12                                );
13     
14     return $c->render(text => 'Bug '.$bug->id);
15 }
16
17 1;