From f38e03dc02c96344677fd2720912605b21c90b5d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 7 Feb 2016 16:52:59 +0100 Subject: Comment work with annotator v2 - add missing annotator.js file and fix typo - edit & delete routes, started tests - basic tests --- app/AppKernel.php | 1 + app/config/routing.yml | 4 ++++ app/config/routing_rest.yml | 1 + app/config/security.yml | 1 + 4 files changed, 7 insertions(+) (limited to 'app') diff --git a/app/AppKernel.php b/app/AppKernel.php index 08c9cc27..1f2d4ad4 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -35,6 +35,7 @@ class AppKernel extends Kernel new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), new Craue\ConfigBundle\CraueConfigBundle(), new Lexik\Bundle\MaintenanceBundle\LexikMaintenanceBundle(), + new Wallabag\CommentBundle\WallabagCommentBundle(), ]; if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { diff --git a/app/config/routing.yml b/app/config/routing.yml index c491d35d..8fbcb643 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -1,3 +1,7 @@ +wallabag_comment: + type : rest + resource: "@WallabagCommentBundle/Resources/config/routing_comments.yml" + wallabag_import: resource: "@WallabagImportBundle/Controller/" type: annotation diff --git a/app/config/routing_rest.yml b/app/config/routing_rest.yml index 0a64ad78..52d395dd 100644 --- a/app/config/routing_rest.yml +++ b/app/config/routing_rest.yml @@ -1,3 +1,4 @@ Rest_Wallabag: type : rest resource: "@WallabagApiBundle/Resources/config/routing_rest.yml" + diff --git a/app/config/security.yml b/app/config/security.yml index 7c10889f..7f05123a 100644 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -58,4 +58,5 @@ security: - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: /(unread|starred|archive).xml$, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/settings, roles: ROLE_SUPER_ADMIN } + - { path: ^/annotations, roles: ROLE_USER } - { path: ^/, roles: ROLE_USER } -- cgit v1.2.3