aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-29 16:56:58 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-29 16:56:58 +0100
commitf8bf8952541b51481a7463c6efc0b2bc9c1edff1 (patch)
treecb632798f4c6f763ba7c827dcaa885eec4255094 /app
parent589dce52c63219d917498d2fdf18e5d7ebe5bf92 (diff)
downloadwallabag-f8bf8952541b51481a7463c6efc0b2bc9c1edff1.tar.gz
wallabag-f8bf8952541b51481a7463c6efc0b2bc9c1edff1.tar.zst
wallabag-f8bf8952541b51481a7463c6efc0b2bc9c1edff1.zip
routing for API, trying to respect #414
Diffstat (limited to 'app')
-rw-r--r--app/AppKernel.php3
-rw-r--r--app/config/routing.yml13
-rw-r--r--app/config/routing_rest.yml3
3 files changed, 13 insertions, 6 deletions
diff --git a/app/AppKernel.php b/app/AppKernel.php
index e8160135..515c79ec 100644
--- a/app/AppKernel.php
+++ b/app/AppKernel.php
@@ -20,8 +20,7 @@ class AppKernel extends Kernel
20 new FOS\RestBundle\FOSRestBundle(), 20 new FOS\RestBundle\FOSRestBundle(),
21 new JMS\SerializerBundle\JMSSerializerBundle(), 21 new JMS\SerializerBundle\JMSSerializerBundle(),
22 new Nelmio\ApiDocBundle\NelmioApiDocBundle(), 22 new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
23 new Wallabag\CoreBundle\WallabagCoreBundle(), 23 new Wallabag\CoreBundle\WallabagCoreBundle()
24 new Wallabag\ApiBundle\WallabagApiBundle(),
25 ); 24 );
26 25
27 if (in_array($this->getEnvironment(), array('dev', 'test'))) { 26 if (in_array($this->getEnvironment(), array('dev', 'test'))) {
diff --git a/app/config/routing.yml b/app/config/routing.yml
index 60fcb6f4..8e04a0c8 100644
--- a/app/config/routing.yml
+++ b/app/config/routing.yml
@@ -10,7 +10,12 @@ doc-api:
10 resource: "@NelmioApiDocBundle/Resources/config/routing.yml" 10 resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
11 prefix: /api/doc 11 prefix: /api/doc
12 12
13wallabag_api: 13#wallabag_api:
14 resource: "@WallabagApiBundle/Controller/" 14# resource: "@WallabagApiBundle/Controller/"
15 type: annotation 15# type: annotation
16 prefix: /api \ No newline at end of file 16# prefix: /api
17
18rest :
19 type : rest
20 resource : "routing_rest.yml"
21 prefix : /api \ No newline at end of file
diff --git a/app/config/routing_rest.yml b/app/config/routing_rest.yml
new file mode 100644
index 00000000..82d9e6cc
--- /dev/null
+++ b/app/config/routing_rest.yml
@@ -0,0 +1,3 @@
1Rest_Wallabag:
2 type : rest
3 resource: "@WallabagCoreBundle/Resources/config/routing_rest.yml" \ No newline at end of file