UNPKG

@gabliam/express

Version:
26 lines (25 loc) 695 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.METADATA_KEY = exports.EXPRESS_PLUGIN_CONFIG = exports.CUSTOM_ROUTER_CREATOR = void 0; /** * Represent a custom router creator * * If you want a custom router use this const for create your router * * ## Sample * @Config() * class Conf { * @Bean(CUSTOM_ROUTER_CREATOR) * custom() { * return () => * e.Router({ * caseSensitive: true * }); * } * } */ exports.CUSTOM_ROUTER_CREATOR = Symbol('GABLIAM/CUSTOM_ROUTER_CREATOR'); exports.EXPRESS_PLUGIN_CONFIG = Symbol('GABLIAM/EXPRESS_PLUGIN_CONFIG'); exports.METADATA_KEY = { expressInterceptor: '_express_interceptor', };