]> Dogcows Code - chaz/chatty/blobdiff - lib/Chatty.pm
use a json view instead of writing json directly
[chaz/chatty] / lib / Chatty.pm
index 0de57fd7182bb7a0a1a9d992224bc7510692fd71..80772e7d8948353e1ada7930bf1ecfe2f7f07bb5 100644 (file)
@@ -17,10 +17,14 @@ use Catalyst::Runtime 5.80;
 #                 directory
 
 use Catalyst qw/
-    -Debug
     ConfigLoader
     StackTrace
     Static::Simple
+    Authentication
+    Session
+    Session::Store::FastMmap
+    Session::State::Cookie
+    Unicode::Encoding
 /;
 
 extends 'Catalyst';
@@ -37,9 +41,23 @@ our $VERSION = '0.01';
 # local deployment.
 
 __PACKAGE__->config(
-    name => 'Chatty',
-    # Disable deprecated behavior needed by old applications
-    disable_component_resolution_regex_fallback => 1,
+       name => 'Chatty',
+       # Disable deprecated behavior needed by old applications
+       disable_component_resolution_regex_fallback => 1,
+       'Plugin::Authentication' => {
+               default => {
+                       class           => 'SimpleDB',
+                       user_model      => 'DB::Account',
+                       password_type   => 'clear',
+               },
+       },
+       'Plugin::Session' => {
+               flash_to_stash => 1,
+       },
+       default_view => 'HTML',
+       'View::JSON' => {
+               expose_stash => 'json',
+       },
 );
 
 # Start the application
This page took 0.016881 seconds and 4 git commands to generate.