mirror of
https://github.com/zoriya/elysia.git
synced 2026-08-15 18:44:25 +00:00
13 lines
238 B
TypeScript
13 lines
238 B
TypeScript
import KingWorld from '../src'
|
|
|
|
import cookie from '../src/index'
|
|
|
|
const app = new KingWorld()
|
|
.get('/', ({ status, responseHeaders }) => {
|
|
responseHeaders.append('a', 'b')
|
|
status(400)
|
|
|
|
return new Response('Ok')
|
|
})
|
|
.listen(8080)
|