UNPKG

jsm-core

Version:
8 lines (7 loc) 365 B
import { RequestHandler } from "express"; /** * @description Attach the calling service to req.attached_entities or apply the middleware if no service is found * @param {RequestHandler} middleware The middleware to apply if no service is found */ declare const unlessFromService: (middleware: RequestHandler) => RequestHandler; export default unlessFromService;