🎉 feat: release 1.2.2

This commit is contained in:
saltyaom
2025-02-22 00:50:06 +07:00
parent d5c1dfd52e
commit 65b20fcd3d
3 changed files with 8 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ const schema = t.Object({
test: t.Literal('hello')
})
const app = new Elysia()
const app = new Elysia({ precompile: true })
.use(
swagger({
provider: 'scalar',
@@ -45,12 +45,10 @@ const app = new Elysia()
.get(
'/',
() => {
test: 'hello'
return { test: 'hello' }
},
{
response: t.Object({
a: t.Ref('schema')
})
response: 'schema'
}
)
.listen(3000)