UNPKG

@gabliam/koa

Version:
23 lines (22 loc) 584 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.KOA_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.KOA_PLUGIN_CONFIG = Symbol('GABLIAM/KOA_PLUGIN_CONFIG');