@accelerated-software-development/caddy-api-client - v0.2.2
    Preparing search index...

    Function validateRouteOrdering

    • Validate route ordering against expected rules Throws if ordering would cause routing issues

      Parameters

      • routes: CaddyRoute[]

        Routes to validate (should already be sorted)

      Returns void

      If route ordering violates rules

      const routes = sortRoutes([healthRoute, apiRoute, catchAll]);
      validateRouteOrdering(routes); // No error

      validateRouteOrdering([catchAll, healthRoute]); // Throws error