From b4c21eeebb8fee4dd2ab52038ad97e3ba06286fe Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Tue, 19 Feb 2019 11:46:17 +0530 Subject: doc update: firstapp: routes to root https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/firstapp.html#adding-configuration --- CONTRIBUTORS.txt | 2 ++ docs/narr/firstapp.rst | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 79e4287d2..3c92d1d91 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -336,3 +336,5 @@ Contributors - Colin Dunklau, 2018/09/19 - Alexandre Yukio Harano, 2018/10/05 + +- Arijit Basu, 2019/02/19 diff --git a/docs/narr/firstapp.rst b/docs/narr/firstapp.rst index 917482976..10fbc5bb4 100644 --- a/docs/narr/firstapp.rst +++ b/docs/narr/firstapp.rst @@ -170,8 +170,7 @@ Adding Configuration :lines: 12-13 The first line above calls the :meth:`pyramid.config.Configurator.add_route` -method, which registers a :term:`route` to match any URL path that begins with -``/hello/`` followed by a string. +method, which registers a :term:`route` to root (``/``) URL path. The second line registers the ``hello_world`` function as a :term:`view callable` and makes sure that it will be called when the ``hello`` route is -- cgit v1.2.3