@whi/cf-routing - v0.2.0
    Preparing search index...

      @whi/cf-routing - v0.2.0

      Routing framework for Cloudflare Workers built on itty-router with error handling, CORS, and class-based route handlers.

      import { WorkerRouter, RouteHandler } from '@whi/cf-routing';

      class HealthHandler extends RouteHandler {
      async get() {
      return { status: 'healthy' };
      }
      }

      const router = new WorkerRouter('my-worker')
      .defineRouteHandler('/health', HealthHandler)
      .build();

      Classes - Routers

      WorkerRouter
      DurableObjectRouter

      Classes - Handlers

      RouteHandler
      DurableObjectRouteHandler

      Classes - Response

      ResponseContext

      Interfaces - Types

      Env

      Type Aliases - Types

      Params
      Middleware
      DurableObjectMiddleware

      Variables - Utilities

      corsHeaders

      Functions - Utilities

      addCorsHeaders
      createCorsHandler

      Functions - Other

      handleRoute
      handleMiddleware
      handleDurableObjectRoute
      handleDurableObjectMiddleware