adminjs
adminjs copied to clipboard
get page : api client: pass parameter
Hello , I need to pass a parameter from my custom page to the handle function using the apiclient class and the get page function at the level of this function I cannot pass any parameter or query how can I get around this problem?
You can use either data
or params
:
const api = new ApiClient()
api.getPage({
pageName: 'xxx',
data: { test: 123 }, // visible in request.payload in handler
})