Skip to content
On this page

onBeforeInit

The initialization function is triggered before the Axe API starts to create routes.

ts
import { Express } from "express";

const onBeforeInit = async (app: Express) => {
  // Do anything with the Express instance
};

export { onBeforeInit };

Released under the MIT License.