Add elysia js skills

This commit is contained in:
Dominic Ferrando
2026-06-23 12:37:47 -04:00
parent 09d0739055
commit b4623a1224
54 changed files with 7116 additions and 0 deletions
@@ -0,0 +1,15 @@
import { Elysia } from 'elysia'
const prettyJson = new Elysia()
.mapResponse(({ response }) => {
if (response instanceof Object)
return new Response(JSON.stringify(response, null, 4))
})
.as('scoped')
new Elysia()
.use(prettyJson)
.get('/', () => ({
hello: 'world'
}))
.listen(3000)