1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-15 13:45:04 -05:00

[add] route for article view

This commit is contained in:
Nicolas Lœuillet 2014-01-08 10:55:28 +01:00
parent 1d4f308d4e
commit 51ee652e58

View File

@ -11,6 +11,13 @@ $front->get('/', function () use ($app) {
return $app['twig']->render('index.twig', array('entries' => $entries));
});
$front->get('/view/{id}', function (Request $request, $id) use ($app) {
$entry = $app['entry_api']->getEntryById($id);
return $app['twig']->render('view.twig', array('entry' => $entry));
});
$front->match('/add', function (Request $request) use ($app) {
$data = array('url');