Runtime Functions

Runtime Functions are executed when the server starts. These functions are useful for starting any additional servers your back-end might require, or to establish connections to other services.

const { RuntimeFunction } = require("@adamite/service-functions");

module.exports = {
  helloWorld: new RuntimeFunction(() => {
    console.log("Server has started");
  })
};

Last updated