1
0
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:
Nicolas Lœuillet 2014-01-21 21:28:54 +01:00
parent ea37c337a5
commit 418bf8b140
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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'),