diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/EntryRestController.php | 3 | ||||
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/SearchRestController.php | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/EntryRestController.php b/src/Wallabag/ApiBundle/Controller/EntryRestController.php index a79e852c..16d8a40b 100644 --- a/src/Wallabag/ApiBundle/Controller/EntryRestController.php +++ b/src/Wallabag/ApiBundle/Controller/EntryRestController.php | |||
@@ -10,7 +10,6 @@ use Symfony\Component\HttpFoundation\Request; | |||
10 | use Symfony\Component\HttpFoundation\Response; | 10 | use Symfony\Component\HttpFoundation\Response; |
11 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; | 11 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
12 | use Symfony\Component\HttpKernel\Exception\HttpException; | 12 | use Symfony\Component\HttpKernel\Exception\HttpException; |
13 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | ||
14 | use Wallabag\CoreBundle\Entity\Entry; | 13 | use Wallabag\CoreBundle\Entity\Entry; |
15 | use Wallabag\CoreBundle\Entity\Tag; | 14 | use Wallabag\CoreBundle\Entity\Tag; |
16 | use Wallabag\CoreBundle\Event\EntryDeletedEvent; | 15 | use Wallabag\CoreBundle\Event\EntryDeletedEvent; |
@@ -140,7 +139,7 @@ class EntryRestController extends WallabagRestController | |||
140 | 'tags' => $tags, | 139 | 'tags' => $tags, |
141 | 'since' => $since, | 140 | 'since' => $since, |
142 | ], | 141 | ], |
143 | UrlGeneratorInterface::ABSOLUTE_URL | 142 | true |
144 | ) | 143 | ) |
145 | ); | 144 | ); |
146 | 145 | ||
diff --git a/src/Wallabag/ApiBundle/Controller/SearchRestController.php b/src/Wallabag/ApiBundle/Controller/SearchRestController.php index f8da0ad4..d9f99844 100644 --- a/src/Wallabag/ApiBundle/Controller/SearchRestController.php +++ b/src/Wallabag/ApiBundle/Controller/SearchRestController.php | |||
@@ -9,7 +9,6 @@ use Pagerfanta\Adapter\DoctrineORMAdapter; | |||
9 | use Pagerfanta\Pagerfanta; | 9 | use Pagerfanta\Pagerfanta; |
10 | use Symfony\Component\HttpFoundation\JsonResponse; | 10 | use Symfony\Component\HttpFoundation\JsonResponse; |
11 | use Symfony\Component\HttpFoundation\Request; | 11 | use Symfony\Component\HttpFoundation\Request; |
12 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | ||
13 | 12 | ||
14 | class SearchRestController extends WallabagRestController | 13 | class SearchRestController extends WallabagRestController |
15 | { | 14 | { |
@@ -57,7 +56,7 @@ class SearchRestController extends WallabagRestController | |||
57 | 'page' => $page, | 56 | 'page' => $page, |
58 | 'perPage' => $perPage, | 57 | 'perPage' => $perPage, |
59 | ], | 58 | ], |
60 | UrlGeneratorInterface::ABSOLUTE_URL | 59 | true |
61 | ) | 60 | ) |
62 | ); | 61 | ); |
63 | 62 | ||