File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Original file line number Diff line number Diff line change @@ -81,14 +81,14 @@ If you see a lucky number being printed back to you, congratulations! But before
81
81
you run off to play the lottery, check out how this works. Remember the two steps
82
82
to creating a page?
83
83
84
+ #. *Create a controller and a method *: This is a function where *you * build the page and ultimately
85
+ return a ``Response `` object. You'll learn more about :doc: `controllers </controller >`
86
+ in their own section, including how to return JSON responses.
87
+
84
88
#. *Create a route *: In ``config/routes.yaml ``, the route defines the URL to your
85
89
page (``path ``) and what ``controller `` to call. You'll learn more about :doc: `routing </routing >`
86
90
in its own section, including how to make *variable * URLs;
87
91
88
- #. *Create a controller *: This is a function where *you * build the page and ultimately
89
- return a ``Response `` object. You'll learn more about :doc: `controllers </controller >`
90
- in their own section, including how to return JSON responses.
91
-
92
92
.. _annotation-routes :
93
93
94
94
Annotation Routes
You can’t perform that action at this time.
0 commit comments