Trilium Backend API
Preparing search index...
<internal>
IRouterMatcher
Interface IRouterMatcher<T, Method>
Type Parameters
T
Method
extends
"all"
|
"get"
|
"post"
|
"put"
|
"delete"
|
"patch"
|
"options"
|
"head"
=
any
IRouterMatcher
<
Route
extends
string
|
RegExp
,
P
=
RouteParameters
<
Route
>
,
ResBody
=
any
,
ReqBody
=
any
,
ReqQuery
=
ParsedQs
,
LocalsObj
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
,
>
(
path
:
Route
,
...
handlers
:
RequestHandler
<
P
,
ResBody
,
ReqBody
,
ReqQuery
,
LocalsObj
>
[]
,
)
:
T
Type Parameters
Route
extends
string
|
RegExp
P
=
RouteParameters
<
Route
>
ResBody
=
any
ReqBody
=
any
ReqQuery
=
ParsedQs
LocalsObj
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Parameters
path
:
Route
...
handlers
:
RequestHandler
<
P
,
ResBody
,
ReqBody
,
ReqQuery
,
LocalsObj
>
[]
Returns
T
IRouterMatcher
<
Path
extends
string
|
RegExp
,
P
=
RouteParameters
<
Path
>
,
ResBody
=
any
,
ReqBody
=
any
,
ReqQuery
=
ParsedQs
,
LocalsObj
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
,
>
(
path
:
Path
,
...
handlers
:
RequestHandlerParams
<
P
,
ResBody
,
ReqBody
,
ReqQuery
,
LocalsObj
>
[]
,
)
:
T
Type Parameters
Path
extends
string
|
RegExp
P
=
RouteParameters
<
Path
>
ResBody
=
any
ReqBody
=
any
ReqQuery
=
ParsedQs
LocalsObj
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Parameters
path
:
Path
...
handlers
:
RequestHandlerParams
<
P
,
ResBody
,
ReqBody
,
ReqQuery
,
LocalsObj
>
[]
Returns
T
IRouterMatcher
<
P
=
ParamsDictionary
,
ResBody
=
any
,
ReqBody
=
any
,
ReqQuery
=
ParsedQs
,
LocalsObj
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
,
>
(
path
:
PathParams
,
...
handlers
:
RequestHandler
<
P
,
ResBody
,
ReqBody
,
ReqQuery
,
LocalsObj
>
[]
,
)
:
T
Type Parameters
P
=
ParamsDictionary
ResBody
=
any
ReqBody
=
any
ReqQuery
=
ParsedQs
LocalsObj
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Parameters
path
:
PathParams
...
handlers
:
RequestHandler
<
P
,
ResBody
,
ReqBody
,
ReqQuery
,
LocalsObj
>
[]
Returns
T
IRouterMatcher
<
P
=
ParamsDictionary
,
ResBody
=
any
,
ReqBody
=
any
,
ReqQuery
=
ParsedQs
,
LocalsObj
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
,
>
(
path
:
PathParams
,
...
handlers
:
RequestHandlerParams
<
P
,
ResBody
,
ReqBody
,
ReqQuery
,
LocalsObj
>
[]
,
)
:
T
Type Parameters
P
=
ParamsDictionary
ResBody
=
any
ReqBody
=
any
ReqQuery
=
ParsedQs
LocalsObj
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Parameters
path
:
PathParams
...
handlers
:
RequestHandlerParams
<
P
,
ResBody
,
ReqBody
,
ReqQuery
,
LocalsObj
>
[]
Returns
T
IRouterMatcher
(
path
:
PathParams
,
subApplication
:
Application
)
:
T
Parameters
path
:
PathParams
subApplication
:
Application
Returns
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Trilium Backend API
Loading...