UNPKG

@botwall/middleware

Version:

Express middleware for BotWall - protects your APIs with pay-per-crawl, signature verification, and bot analytics

9 lines (8 loc) 404 B
import { Request, Response, NextFunction } from 'express'; export interface ValidateCrawlRequestOptions { backendUrl?: string; siteId?: string; monetizedRoutes?: string[]; pricePerCrawl?: number; } export declare function validateCrawlRequest(options?: ValidateCrawlRequestOptions): (req: Request, res: Response, next: NextFunction) => Promise<void | Response<any, Record<string, any>>>;