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:
parent
7b97b86772
commit
7587e70dfa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user