UNPKG

webpods

Version:

Append-only log service with OAuth authentication

20 lines 597 B
/** * Pod extraction middleware */ import { Request, Response, NextFunction } from "express"; import { Pod } from "../types.js"; declare module "express-serve-static-core" { interface Request { pod?: Pod; pod_id?: string; } } /** * Extract pod from hostname */ export declare function extractPod(req: Request, res: Response, next: NextFunction): Promise<void>; /** * Optional pod extraction - doesn't fail if no pod found */ export declare function optionalExtractPod(req: Request, _res: Response, next: NextFunction): Promise<void>; //# sourceMappingURL=pod.d.ts.map