@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
| Name | Type |
|---|---|
fn | (req: Request) => Promise<Response> |
endpointPath | string |
endpoint | Endpoint |
Returns
fn
▸ (req): Promise<Response>
Parameters
| Name | Type |
|---|---|
req | Request |
Returns
Promise<Response>
Starboard