user-center-auth
Version:
a user-center-auth middleware
15 lines (10 loc) • 321 B
TypeScript
import {Application, Response, Request, NextFunction} from 'express';
interface Config{
acl?: boolean,
exclude?: string [],
loginUrl: string,
infoUrl: string
}
function mid(req: Request, res: Response, next: NextFunction): void
function middleware(app: Application, config: Config): mid;
export = middleware;