Skip to content

Record a sky camera around the clock, keep the footage on your own disk, and find what flew past.

361 B
Raw Blame
export type Params = Record<string, string>;

export type Handler<Env> = (
  request: Request,
  env: Env,
  params: Params,
  url: URL,
  ctx: ExecutionContext,
) => Promise<Response>;

export interface Route<Env> {
  method: string;
  pattern: URLPattern;
  handler: Handler<Env>;
}
export interface RouteMatch<Env> {
  route: Route<Env>;
  params: Params;
}