diff --git a/examples/demo/modules/blog/cms_blog_module.e b/examples/demo/modules/blog/cms_blog_module.e index d247566..f2e795d 100644 --- a/examples/demo/modules/blog/cms_blog_module.e +++ b/examples/demo/modules/blog/cms_blog_module.e @@ -119,7 +119,7 @@ configure_web (a_api: CMS_API; a_node_api: CMS_BLOG_API; a_router: WSF_ROUTER) a_router.map_with_request_methods (l_uri_mapping, a_router.methods_get) -- We can add a page number after /blogs/ to get older posts - a_router.handle_with_request_methods ("/blogs/{page}", l_blog_handler, a_router.methods_get) + a_router.handle_with_request_methods ("/blogs/page/{page}", l_blog_handler, a_router.methods_get) end diff --git a/examples/demo/modules/blog/handler/blog_handler.e b/examples/demo/modules/blog/handler/blog_handler.e index 4498368..f23f0c0 100644 --- a/examples/demo/modules/blog/handler/blog_handler.e +++ b/examples/demo/modules/blog/handler/blog_handler.e @@ -102,7 +102,7 @@ feature -- HTTP Methods if attached node_api.blogs_order_created_desc_limited (entries_per_page, (page_number-1) * entries_per_page) as lst then -- List all posts of the blog - s.append ("