Skip to content

Commit

Permalink
feed route
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Mar 29, 2016
1 parent c89fd73 commit 5bad79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function map(Router $router)
foreach (config('translatable.locales') as $lang) {
if ($page->translate($lang)->status && $uri = $page->uri($lang)) {
$router->get($uri, $options + ['as' => $lang.'.news', 'uses' => 'PublicController@index']);
$router->get($uri.'/feed', $options + ['as' => $lang.'.news.feed', 'uses' => 'PublicController@feed']);
$router->get($uri.'.xml', $options + ['as' => $lang.'.news.feed', 'uses' => 'PublicController@feed']);
$router->get($uri.'/{slug}', $options + ['as' => $lang.'.news.slug', 'uses' => 'PublicController@show']);
}
}
Expand Down

0 comments on commit 5bad79d

Please sign in to comment.