@trenskow/app 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -313,6 +313,8 @@ Whenever a function (such as [`.mount`](#mount) or [`.parameter`](#parameters) o
|
|
|
313
313
|
|
|
314
314
|
A router is the same as above, except it only supports [`.use`](#use).
|
|
315
315
|
|
|
316
|
+
> `.use` also has method specific variants such as `use.get`, `use.post`, `use.put`, `use.delete`, etc...
|
|
317
|
+
|
|
316
318
|
###### When using routers
|
|
317
319
|
|
|
318
320
|
As above, whenever a function takes a router as a parameter, it can be provided in any of the following ways.
|
|
@@ -707,7 +709,7 @@ The constructor takes no parameters.
|
|
|
707
709
|
|
|
708
710
|
#### Instance methods
|
|
709
711
|
|
|
710
|
-
##### `use`
|
|
712
|
+
##### `use`, `use.get`, `use.post`, `use.put`, `use.delete`, etc...
|
|
711
713
|
|
|
712
714
|
This method is like the [HTTP method handlers](#get-post-put-delete-etc) of [`Endpoint`](#endpoint-2), except it is called with all HTTP methods and the return value is ignored. Routing continues after handler returns.
|
|
713
715
|
|