Fixes #1636: Add get(setting) definition on express.Application

This commit is contained in:
Ragesh Krishna
2014-03-30 17:35:10 +05:30
parent 2c52e529f9
commit 1f81d75c3f
+6
View File
@@ -967,6 +967,12 @@ declare module "express" {
* @param val
*/
set (setting: string, val: string): Application;
get(name: string): string;
get(name: string, ...handlers: RequestFunction[]): Application;
get(name: RegExp, ...handlers: RequestFunction[]): Application;
/**
* Return the app's absolute pathname