mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-15 13:45:04 -05:00
[change] route for post a new URL
This commit is contained in:
parent
ea37c337a5
commit
418bf8b140
@ -18,7 +18,7 @@ $api->get('/entries', function () use ($app) {
|
||||
return $app->json($entries, 200);
|
||||
});
|
||||
|
||||
$api->post('/entries', function (Request $request) use ($app) {
|
||||
$api->post('/add', function (Request $request) use ($app) {
|
||||
$url = $request->request->get('url');
|
||||
|
||||
$entry = $app['entry_api']->createEntryFromUrl($url);
|
||||
|
@ -270,7 +270,7 @@ class ApiTest extends PocheWebTestCase
|
||||
$client = $this->createClient();
|
||||
$crawler = $client->request(
|
||||
'POST',
|
||||
'/api/entries',
|
||||
'/api/add',
|
||||
array(),
|
||||
array(),
|
||||
array('CONTENT_TYPE' => 'application/json'),
|
||||
|
Loading…
Reference in New Issue
Block a user