Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

fixed multiple typos in the code example as well as typo in explanation ... #522

Merged
merged 1 commit into from
Sep 18, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/dev_guide/code_exs/route_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ is created, which can then be associated in a route defined in ``routes.json``.
]

The example ``routes.json`` below associates the ``mapped_mojit`` instance defined in ``application.json`` with a path and explicitly calls the ``index`` action. If the controller for ``RoutingMojit`` had the function ``myFunction``,
you could would use the following to call it: ``mapped_mojit.myFunction``. Based on the ``custom-route`` route below, when an HTTP GET call is made on the URL ``http:{domain}:8666/custom-route``,
you would use the following to call it: ``mapped_mojit.myFunction``. Based on the ``custom-route`` route below, when an HTTP GET call is made on the URL ``http:{domain}:8666/custom-route``,
the ``index`` action is called from the ``custom-route`` instance.

.. code-block:: javascript
Expand Down Expand Up @@ -64,11 +64,11 @@ method ``post_params`` from the ``post-route`` mojit instance.
"verbs": ["get"],
"path": "/custom-route",
"call": "mapped_mojit.index"
}
},
"another-route": {
"verbs": ["post"]
"verbs": ["post"],
"path": "/*",
"call": mojit-post-route.post_params"
"call": "mojit-post-route.post_params"
}
}
]
Expand Down