added meta_info/http_header viewport option example to tutorial (abraxxa++)
[catagits/Reaction.git] / lib / ComponentUI / Controller / Root.pm
index 2e2a181..9f57fa9 100644 (file)
@@ -22,7 +22,7 @@ sub base :Chained('/') :PathPart('') :CaptureArgs(0) {
   my ($self, $c) = @_;
   $self->push_viewport(SiteLayout,
     title => 'ComponentUI test title',
-    static_base_uri => "${\$c->uri_for('static')}",
+    static_base_uri => "${\$c->uri_for('/static')}",
   );
 }
 
@@ -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);