Skip to content

@mcsb/framework / Exports / Plugin

Class: Plugin ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Plugin()

Methods ​

install ​

▸ Abstract install(fn, endpointPath, endpoint): (req: Request) => Promise<Response>

Parameters ​

NameType
fn(req: Request) => Promise<Response>
endpointPathstring
endpointEndpoint

Returns ​

fn

▸ (req): Promise<Response>

Parameters ​
NameType
reqRequest
Returns ​

Promise<Response>

Defined in ​

Plugin.ts:6

Released under the MIT License.