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:
parent
bbd89215d8
commit
a8c636e936
@ -27,4 +27,12 @@ $api->post('/entries', function (Request $request) use ($app) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user