aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ComponentUI
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ComponentUI')
-rw-r--r--lib/ComponentUI/Controller/Root.pm4
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);