1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-18 05:32:23 -05:00

[add] get one entry with the API

This commit is contained in:
Nicolas Lœuillet 2014-01-09 09:57:18 +01:00
parent bbd89215d8
commit a8c636e936

View File

@ -27,4 +27,12 @@ $api->post('/entries', function (Request $request) use ($app) {
return $app->json($entry, 201); return $app->json($entry, 201);
}); });
$api->get('/get', function (Request $request) use ($app) {
$id = $request->request->get('id');
$entry = $app['entry_api']->getEntryById($id);
return $app->json($entry, 201);
});
return $api; return $api;