From 9fb6ac830fa669beef1dd11070421262c073192c Mon Sep 17 00:00:00 2001 From: Francois Gravelaine Date: Mon, 27 Jul 2015 23:20:32 +0200 Subject: Adds pagerfanta paginator everywhere, modifies article routing. Change API for is_starred and is_archived --- app/config/routing.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/config/routing.yml b/app/config/routing.yml index 8710e97f..e8bf08a5 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -6,10 +6,6 @@ app: resource: @WallabagCoreBundle/Controller/ type: annotation -homepage: - pattern: / - defaults: { _controller: WallabagCoreBundle:Entry:showUnread } - doc-api: resource: "@NelmioApiDocBundle/Resources/config/routing.yml" prefix: /api/doc @@ -17,8 +13,10 @@ doc-api: login: pattern: /login defaults: { _controller: WallabagCoreBundle:Security:login } + login_check: pattern: /login_check + logout: path: /logout @@ -26,3 +24,9 @@ rest : type : rest resource : "routing_rest.yml" prefix : /api + +homepage: + pattern: "/{page}" + defaults: { _controller: WallabagCoreBundle:Entry:showUnread, page : 1 } + requirements: + page: \d+ -- cgit v1.2.3