mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
bundle for API
This commit is contained in:
parent
e4788de51e
commit
3e5a342f65
6 changed files with 44 additions and 29 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
use Symfony\Component\HttpKernel\Kernel;
|
||||
use Symfony\Component\Config\Loader\LoaderInterface;
|
||||
use Wallabag\ApiBundle\WallabagApiBundle;
|
||||
|
||||
class AppKernel extends Kernel
|
||||
{
|
||||
|
@ -20,6 +21,7 @@ class AppKernel extends Kernel
|
|||
new JMS\SerializerBundle\JMSSerializerBundle(),
|
||||
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
|
||||
new Wallabag\CoreBundle\WallabagCoreBundle(),
|
||||
new Wallabag\ApiBundle\WallabagApiBundle(),
|
||||
);
|
||||
|
||||
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
|
||||
|
|
|
@ -10,7 +10,7 @@ doc-api:
|
|||
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
|
||||
prefix: /api/doc
|
||||
|
||||
rest :
|
||||
type : rest
|
||||
resource : "routing_rest.yml"
|
||||
prefix : /api
|
||||
wallabag_api:
|
||||
resource: "@WallabagApiBundle/Controller/"
|
||||
type: annotation
|
||||
prefix: /api
|
|
@ -1,4 +0,0 @@
|
|||
app_api :
|
||||
type: rest
|
||||
resource: "WallabagCoreBundle:Api"
|
||||
name_prefix: api_
|
Loading…
Add table
Add a link
Reference in a new issue