Skip to content

Documents for @litert/xxl-job-integration / Listener/NodeHttp / serve

Function: serve()

serve(router, executor, prefix): void

Defined in: src/lib/Listener/NodeHttp.ts:50

Bind the XXL-Job executor API to the a HTTP server router.

Parameters

router

IRouter

The HTTP router to register the API endpoints.

executor

IExecutor

The XXL-Job executor instance to handle the API requests.

prefix

string = ''

The URL path prefix for the API endpoints [default:""].

Returns

void