diff options
Diffstat (limited to 'lib/ComponentUI/Controller/Root.pm')
-rw-r--r-- | lib/ComponentUI/Controller/Root.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ComponentUI/Controller/Root.pm b/lib/ComponentUI/Controller/Root.pm index 4113a73..9f57fa9 100644 --- a/lib/ComponentUI/Controller/Root.pm +++ b/lib/ComponentUI/Controller/Root.pm @@ -31,6 +31,10 @@ sub root :Chained('base') :PathPart('') :Args(0) { $self->push_viewport(ViewPort, layout => 'index'); } +sub bye :Chained('base') :PathPart('bye') :Args(0) { + exit; +} + sub static :Chained('base') :PathPart('static') :Args { my ($self, $c, @args) = @_; return if $c->stash->{window}->view->serve_static_file($c, \@args); |