Beignet API reference
    Preparing search index...

    Function createRoutes

    Server runtime helpers.

    • Create route declaration builders bound to an application context type.

      Call this once in lib/routes.ts, then import the app-bound builders from feature route files.

      Type Parameters

      • Ctx

      Returns Routes<Ctx>

      export const { defineRoute, defineRouteGroup } =
      createRoutes<AppContext>();