diff --git a/app/config/routing.yml b/app/config/routing.yml index 205fe8230..ec57effa2 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -3,11 +3,6 @@ wallabag_import: type: annotation prefix: /import -wallabag_api: - resource: "@WallabagApiBundle/Controller/" - type: annotation - prefix: / - app: resource: "@WallabagCoreBundle/Controller/" type: annotation diff --git a/app/config/services.yml b/app/config/services.yml index 3549e5def..14bfa3123 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -42,10 +42,6 @@ services: # controllers are imported separately to make sure services can be injected # as action arguments even if you don't extend any base controller class - Wallabag\ApiBundle\Controller\: - resource: '../../src/Wallabag/ApiBundle/Controller/' - tags: ['controller.service_arguments'] - Wallabag\CoreBundle\Controller\: resource: '../../src/Wallabag/CoreBundle/Controller/' tags: ['controller.service_arguments'] diff --git a/src/Wallabag/CoreBundle/Controller/AnnotationController.php b/src/Wallabag/CoreBundle/Controller/AnnotationController.php index fa7cc218a..aa48ac095 100644 --- a/src/Wallabag/CoreBundle/Controller/AnnotationController.php +++ b/src/Wallabag/CoreBundle/Controller/AnnotationController.php @@ -33,7 +33,7 @@ class AnnotationController extends AbstractFOSRestController /** * Retrieve annotations for an entry. * - * @see Wallabag\ApiBundle\Controller\WallabagRestController + * @see Api\WallabagRestController * * @Route("/annotations/{entry}.{_format}", methods={"GET"}, name="annotations_get_annotations", defaults={"_format": "json"}) * @@ -54,7 +54,7 @@ class AnnotationController extends AbstractFOSRestController /** * Creates a new annotation. * - * @see Wallabag\ApiBundle\Controller\WallabagRestController + * @see Api\WallabagRestController * * @Route("/annotations/{entry}.{_format}", methods={"POST"}, name="annotations_post_annotation", defaults={"_format": "json"}) * @@ -88,7 +88,7 @@ class AnnotationController extends AbstractFOSRestController /** * Updates an annotation. * - * @see Wallabag\ApiBundle\Controller\WallabagRestController + * @see Api\WallabagRestController * * @Route("/annotations/{annotation}.{_format}", methods={"PUT"}, name="annotations_put_annotation", defaults={"_format": "json"}) * @@ -125,7 +125,7 @@ class AnnotationController extends AbstractFOSRestController /** * Removes an annotation. * - * @see Wallabag\ApiBundle\Controller\WallabagRestController + * @see Api\WallabagRestController * * @Route("/annotations/{annotation}.{_format}", methods={"DELETE"}, name="annotations_delete_annotation", defaults={"_format": "json"}) * diff --git a/src/Wallabag/ApiBundle/Controller/AnnotationRestController.php b/src/Wallabag/CoreBundle/Controller/Api/AnnotationRestController.php similarity index 99% rename from src/Wallabag/ApiBundle/Controller/AnnotationRestController.php rename to src/Wallabag/CoreBundle/Controller/Api/AnnotationRestController.php index 63a3857e5..6fe11bcc9 100644 --- a/src/Wallabag/ApiBundle/Controller/AnnotationRestController.php +++ b/src/Wallabag/CoreBundle/Controller/Api/AnnotationRestController.php @@ -1,6 +1,6 @@