From 024e003943c60afd4278cfb3108c5377d1885b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 13 Jan 2014 22:14:33 +0100 Subject: [PATCH] [add] route for bookmarks --- app/controllers/front.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/controllers/front.php b/app/controllers/front.php index 600b906..8849582 100644 --- a/app/controllers/front.php +++ b/app/controllers/front.php @@ -88,4 +88,11 @@ $front->get('/archive', function () use ($app) { return $app['twig']->render('archive.twig', array('entries' => $entries)); }); +$front->get('/bookmarks', function () use ($app) { + + $entries = $app['entry_api']->getBookmarks(); + + return $app['twig']->render('bookmarks.twig', array('entries' => $entries)); +}); + return $front;