@axonlabs/core
    Preparing search index...

    Function Router

    • Instance of AxonRouter for easier usage

      Parameters

      • Optionalprefix: string

        prefix for all routes in this router

      Returns AxonRouter

      returns an instance of AxonRouter

      const router = Router(); // without prefix
      const router2 = Router("/api/v1"); // with prefix