1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

routing for API, trying to respect #414

This commit is contained in:
Nicolas Lœuillet 2015-01-29 16:56:58 +01:00
parent 589dce52c6
commit f8bf895254
17 changed files with 174 additions and 469 deletions

View file

@ -20,8 +20,7 @@ class AppKernel extends Kernel
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
new Wallabag\CoreBundle\WallabagCoreBundle(),
new Wallabag\ApiBundle\WallabagApiBundle(),
new Wallabag\CoreBundle\WallabagCoreBundle()
);
if (in_array($this->getEnvironment(), array('dev', 'test'))) {

View file

@ -10,7 +10,12 @@ doc-api:
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
prefix: /api/doc
wallabag_api:
resource: "@WallabagApiBundle/Controller/"
type: annotation
prefix: /api
#wallabag_api:
# resource: "@WallabagApiBundle/Controller/"
# type: annotation
# prefix: /api
rest :
type : rest
resource : "routing_rest.yml"
prefix : /api

View file

@ -0,0 +1,3 @@
Rest_Wallabag:
type : rest
resource: "@WallabagCoreBundle/Resources/config/routing_rest.yml"