Skip to content

Commit

Permalink
feat: dev cuid2 generator
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jan 6, 2024
1 parent a16d986 commit 39fce40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/api/__dev/cuid2.get.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { createId } from '@paralleldrive/cuid2'

export default defineEventHandler(() => {
return createId()
})

0 comments on commit 39fce40

Please # to comment.