@vmm/service
Advanced tools
Comparing version 1.0.55 to 1.0.56
{ | ||
"name": "@vmm/service", | ||
"version": "1.0.55", | ||
"version": "1.0.56", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "description": "VMM Service library", |
@@ -64,3 +64,5 @@ /// <reference types="node" /> | ||
sessionExpire?: number; | ||
customApi?: RequestHandler[]; | ||
customApi?: { | ||
[k: string]: RequestHandler; | ||
}; | ||
} | ||
@@ -67,0 +69,0 @@ export declare class Service<T_API extends IApiDefines> { |
@@ -76,3 +76,5 @@ "use strict"; | ||
if (options.customApi) { | ||
this.router.use(options.customApi); | ||
Object.keys(options.customApi).forEach((k) => { | ||
this.router.use(k, options.customApi[k]); | ||
}); | ||
} | ||
@@ -79,0 +81,0 @@ this.router.use(body_parser_1.default.json({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44753
1123