|
@@ -20,8 +20,8 @@ app->config->{hypnotoad}{workers} = app->config->{workers};
|
|
|
|
|
|
helper mango => sub { state $mango = Mango->new('mongodb://'. shift->config->{database_host}) };
|
|
|
helper db => sub { state $db = shift->mango->db('hello_world') };
|
|
|
-helper world => sub { shift->db->collection('World') };
|
|
|
-helper fortune => sub { shift->db->collection('Fortune') };
|
|
|
+helper world => sub { shift->db->collection('world') };
|
|
|
+helper fortune => sub { shift->db->collection('fortune') };
|
|
|
|
|
|
# JSON::XS renderer
|
|
|
|