diff options
| author | Tom Harley | 2018-04-21 03:06:02 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-04-21 03:06:02 +0100 |
| commit | 09155e88a34c211dd9429a70fde432c062af77e0 (patch) | |
| tree | fc64decd667384a07082d8ced77c6e83e7943af5 /src/matcher | |
| parent | Include authoris/zation headers in CORS (diff) | |
| download | medicine-09155e88a34c211dd9429a70fde432c062af77e0.tar.gz medicine-09155e88a34c211dd9429a70fde432c062af77e0.zip | |
Fix many small file-handling problems
Diffstat (limited to 'src/matcher')
| -rw-r--r-- | src/matcher/index.ts | 4 | ||||
| -rw-r--r-- | src/matcher/options.ts | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/matcher/index.ts b/src/matcher/index.ts index 0806907..e7c2f88 100644 --- a/src/matcher/index.ts +++ b/src/matcher/index.ts @@ -5,7 +5,9 @@ export { exact, optional, alternative, - array + array, + match, + metadata } from './options'; export { diff --git a/src/matcher/options.ts b/src/matcher/options.ts index 62e4985..0bad627 100644 --- a/src/matcher/options.ts +++ b/src/matcher/options.ts @@ -89,6 +89,12 @@ export const array = (template: TemplateValue, values?: Value[]) => { }; // tslint:disable-next-line:typedef +export const metadata = exact({ + version: types.integer, + namespaces: {} +}); + +// tslint:disable-next-line:typedef const options = { match, exact, |
