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

[add] route for mark an entry as read

This commit is contained in:
Nicolas Lœuillet 2014-01-09 15:22:58 +01:00
parent 4ee4bbaf44
commit 58f3a1dfd2

View File

@ -19,6 +19,14 @@ $front->get('/view/{id}', function (Request $request, $id) use ($app) {
})
->bind('view_entry');
$front->get('/mark-read/{id}', function (Request $request, $id) use ($app) {
$entry = $app['entry_api']->markAsRead($id);
return $app->redirect('/view/' . $id);
})
->bind('mark_entry_read');
$front->match('/add', function (Request $request) use ($app) {
$data = array('url');