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

[add] API method to mark an entry as read

This commit is contained in:
Nicolas Lœuillet 2014-01-09 15:50:53 +01:00
parent 7b97b86772
commit 7587e70dfa

View File

@ -35,4 +35,12 @@ $api->get('/get', function (Request $request) use ($app) {
return $app->json($entry, 201);
});
$api->get('/mark-read', function (Request $request) use ($app) {
$id = $request->request->get('id');
$entry = $app['entry_api']->markAsRead($id);
return $app->json($entry, 201);
});
return $api;