UNPKG

@tdb/web

Version:

Common condiguration for serving a web-site and testing web-based UI components.

4 lines (3 loc) 248 B
import { Request, Response, NextFunction } from 'express'; import { RedirectPath } from './types'; export declare function redirectHandler(fromPath: string, toPath: RedirectPath | string): (req: Request, res: Response, next: NextFunction) => void;