]> Dogcows Code - chaz/chatty/blobdiff - lib/Chatty.pm
use a json view instead of writing json directly
[chaz/chatty] / lib / Chatty.pm
index 5b91943aace5c4fd8a2a6c3d0d4e234fa086c0d1..80772e7d8948353e1ada7930bf1ecfe2f7f07bb5 100644 (file)
@@ -52,8 +52,12 @@ __PACKAGE__->config(
                },
        },
        'Plugin::Session' => {
-               flash_to_stash => 1
-       }
+               flash_to_stash => 1,
+       },
+       default_view => 'HTML',
+       'View::JSON' => {
+               expose_stash => 'json',
+       },
 );
 
 # Start the application
This page took 0.016946 seconds and 4 git commands to generate.