jsm-core
Version:
Core library for JSM project
8 lines (7 loc) • 365 B
TypeScript
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;