aboutsummaryrefslogtreecommitdiff
path: root/src/uuid.ts
diff options
context:
space:
mode:
authorTom Harley2018-03-01 19:48:47 +0000
committerTom Harley2018-03-01 19:48:47 +0000
commit8bd1d19dbd899047bc8503dbe682358ddfc564cc (patch)
treeda016b8bb301a3f74123aceeee1d1a3427301fd6 /src/uuid.ts
parentRevert "Revert "Merge branch 'trh/error-middleware' into 'master'"" (diff)
downloadmedicine-8bd1d19dbd899047bc8503dbe682358ddfc564cc.tar.gz
medicine-8bd1d19dbd899047bc8503dbe682358ddfc564cc.zip

Implement GET and POST request handlers

Diffstat (limited to 'src/uuid.ts')
-rw-r--r--src/uuid.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/uuid.ts b/src/uuid.ts
new file mode 100644
index 0000000..983a92d
--- /dev/null
+++ b/src/uuid.ts
@@ -0,0 +1,7 @@
+import { v4 } from 'uuid';
+
+export const uuid: {
+ generate: () => string;
+} = {
+ generate: v4
+};