Entry Router
The EntryRouter class is an extension of the main router, that handles actions that are filepaths that an action function. The action function itself accepts a Request object, a Response object, and a Server object argument respectively.
❐ Copy
entries
Returns a map of route entries that are logged using . You can use this to compare against the and properties for analytics and building production code. Entries are mapped like the following where entry is a filepath instead of an action function.
❐ Copy
Example
❐ Copy
action()
Makes an action from an entry pathname string. Registers the entry, a provision for analytics and builders.
Usage
❐ Copy
Example
❐ Copy
all()
A shortcut for .
Usage
❐ Copy
Example
❐ Copy
connect()
A shortcut for .
Usage
❐ Copy
Example
❐ Copy
delete()
A shortcut for .
Usage
❐ Copy
Example
❐ Copy
get()
A shortcut for .
Usage
❐ Copy
Example
❐ Copy
head()
A shortcut for .
Usage
❐ Copy
Example
❐ Copy
on()
Adds an action callback to the given event listener.
Usage
❐ Copy
Example
❐ Copy
options()
A shortcut for .
Usage
❐ Copy
Example
❐ Copy
patch()
A shortcut for .
Usage
❐ Copy
Example
❐ Copy
post()
A shortcut for .
Usage
❐ Copy
Example
❐ Copy
put()
A shortcut for .
Usage
❐ Copy
Example
❐ Copy
route()
Registers a route with the router.
Usage
❐ Copy
Example
❐ Copy
trace()
A shortcut for .
Usage
❐ Copy
Example
❐ Copy
use()
Allows routes from other routers to apply here.
Usage
❐ Copy
Example
❐ Copy