OSDN Git Service

Plugin::Stories: add storiees->latest helper
[newslash/newslash.git] / src / newslash_web / lib / Newslash / Web.pm
index f291e64..a497974 100644 (file)
@@ -217,6 +217,9 @@ sub startup {
     # Users helper
     $app->plugin('Newslash::Plugin::Users');
 
+    # Stories helper
+    $app->plugin('Newslash::Plugin::Stories');
+
     # Sendmail helper
     $app->plugin('Newslash::Plugin::Sendmail');
 
@@ -237,6 +240,9 @@ sub startup {
     $r->get('/submissions')->to('timeline#submissions');
     $r->get('/polls')->to('timeline#polls');
 
+    # RSS
+    $r->get('/rss/sradjp' => [format => ['rss', 'xml']])->to('rss#sradjp');
+
     # Banned page
     $r->get('/banned')->to('index#banned', noindex => 1);