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:
parent
1d4f308d4e
commit
51ee652e58
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user