Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 389 Bytes

elysiajs.md

File metadata and controls

18 lines (13 loc) · 389 Bytes

ElysiaJS

The @elysiajs/swagger plugin uses our API reference by default:

import { swagger } from '@elysiajs/swagger'
import { Elysia } from 'elysia'

new Elysia()
  .use(swagger())
  .get('/', () => 'hi')
  .post('/hello', () => 'world')
  .listen(8080)

// open http://localhost:8080/swagger

Read more about @elysiajs/swagger