docs: improve grammar (#362)

This commit is contained in:
Tamal H
2022-07-04 11:21:47 +00:00
committed by GitHub
parent 9e75a5c065
commit fcff570fc1
9 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ To define a handler, one needs to export a `handler` function or object from the
route module. If the handler is an object, each key in the object is the name of
the HTTP method that the handler should be called for. For example the `GET`
handler above is called for `GET` requests. If the handler is a function, it is
called for all requests regardless of the method. If a HTTP method does not have
a corresponding handler, a 405 HTTP error is returned.
called for all requests regardless of the method. If an HTTP method does not
have a corresponding handler, a 405 HTTP error is returned.
Now, let's render some HTML using the route component: