mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
14 lines
303 B
JavaScript
Executable File
14 lines
303 B
JavaScript
Executable File
import * as fx from "m3o/function";
|
|
|
|
// Call a function
|
|
async function CallAfunction() {
|
|
let functionService = new fx.FunctionService(process.env.MICRO_API_TOKEN);
|
|
let rsp = await functionService.call({
|
|
name: "my-first-func",
|
|
request: {},
|
|
});
|
|
console.log(rsp);
|
|
}
|
|
|
|
await CallAfunction();
|