Constructors
constructor
-
new Router(__namedParameters?): Router
-
Properties
Private
#guarded
#guarded:
boolean
Private
Readonly
#middlewares
Accessors
guarded
-
get guarded(): boolean
-
Returns boolean
-
set guarded(guarded): void
-
Returns void
methods
-
get methods(): Set<string>
-
Returns Set<string>
Methods
delete
-
delete(...middlewares): this
-
Returns this
get
-
get(...middlewares): this
-
Returns this
head
-
head(...middlewares): this
-
Returns this
on
-
on(method,
..._middlewares): this
-
Returns this
options
-
options(...middlewares): this
-
Returns this
patch
-
patch(...middlewares): this
-
Returns this
post
-
post(...middlewares): this
-
Returns this
put
-
put(...middlewares): this
-
Returns this
trace
-
trace(...middlewares): this
-
Returns this
Get all supported methods by the router