From 769e19dc4ab1a068e8165a7b237f42a78a6d312f Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 29 Mar 2015 10:53:10 +0200 Subject: Move API stuff in ApiBundle --- app/AppKernel.php | 3 ++- app/config/routing.yml | 4 ++++ app/config/routing_rest.yml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/AppKernel.php b/app/AppKernel.php index 601b52c3..9a52f349 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -23,7 +23,8 @@ class AppKernel extends Kernel new Nelmio\CorsBundle\NelmioCorsBundle(), new Liip\ThemeBundle\LiipThemeBundle(), new Wallabag\CoreBundle\WallabagCoreBundle(), - new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle() + new Wallabag\ApiBundle\WallabagApiBundle(), + new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { diff --git a/app/config/routing.yml b/app/config/routing.yml index d681b39b..8710e97f 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -1,3 +1,7 @@ +wallabag_api: + resource: "@WallabagApiBundle/Resources/config/routing.yml" + prefix: / + app: resource: @WallabagCoreBundle/Controller/ type: annotation diff --git a/app/config/routing_rest.yml b/app/config/routing_rest.yml index 82d9e6cc..0a64ad78 100644 --- a/app/config/routing_rest.yml +++ b/app/config/routing_rest.yml @@ -1,3 +1,3 @@ Rest_Wallabag: type : rest - resource: "@WallabagCoreBundle/Resources/config/routing_rest.yml" \ No newline at end of file + resource: "@WallabagApiBundle/Resources/config/routing_rest.yml" -- cgit v1.2.3