mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2025-12-06 00:36:10 +00:00
🎉 feat: rebrand to elysia
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { KingWorld, t } from 'kingworld'
|
||||
// ? @kingworldjs/schema
|
||||
import { Elysia, t } from 'elysia'
|
||||
import swagger from '../src/index'
|
||||
|
||||
const app = new KingWorld()
|
||||
.use(swagger)
|
||||
const app = new Elysia()
|
||||
.use(swagger())
|
||||
.get('/', () => 'hi')
|
||||
.get('/unpath/:id', ({ params: { id } }) => id)
|
||||
.post(
|
||||
|
||||
Reference in New Issue
Block a user