From 39fce40b9f2f8992455286602f9f0b384a5cc766 Mon Sep 17 00:00:00 2001 From: Qin Guan Date: Sat, 6 Jan 2024 19:00:13 +0800 Subject: [PATCH] feat: dev cuid2 generator --- server/api/__dev/cuid2.get.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 server/api/__dev/cuid2.get.ts diff --git a/server/api/__dev/cuid2.get.ts b/server/api/__dev/cuid2.get.ts new file mode 100644 index 0000000..0f02151 --- /dev/null +++ b/server/api/__dev/cuid2.get.ts @@ -0,0 +1,5 @@ +import { createId } from '@paralleldrive/cuid2' + +export default defineEventHandler(() => { + return createId() +})