diff options
| author | josh97josh | 2018-04-22 17:36:39 +0100 |
|---|---|---|
| committer | josh97josh | 2018-04-22 17:36:39 +0100 |
| commit | aec20c7e3c9a01dbb073590201b473da5669e8e1 (patch) | |
| tree | 53df187fd473c1d0ca19568f03995bb462d9f633 /src/cors/index.d.ts | |
| parent | Merge branch 'jl247/permissions' into trh/gets (diff) | |
| parent | autocreating logs folder on startup (diff) | |
| download | medicine-aec20c7e3c9a01dbb073590201b473da5669e8e1.tar.gz medicine-aec20c7e3c9a01dbb073590201b473da5669e8e1.zip | |
Merge branch ‘trh/gets’ of ssh://localhost:2222/cs3099group-be-4/project-code into trh/gets
Diffstat (limited to 'src/cors/index.d.ts')
| -rw-r--r-- | src/cors/index.d.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cors/index.d.ts b/src/cors/index.d.ts new file mode 100644 index 0000000..d6e651a --- /dev/null +++ b/src/cors/index.d.ts @@ -0,0 +1,15 @@ +import { NextFunction, Request, Response } from 'express'; + +export interface CORSOptions { + origins?: string[] | Function; + methods?: string[]; + requestHeaders?: string[]; + responseHeaders?: string[]; + supportsCredentials?: boolean; + maxAge?: number; + endPreflightRequests?: boolean; +} + +export const cors: () => + (req: Request, res: Response, next: NextFunction) => + void; |
