view benchmark/bun-http-framework-benchmark/src/node/elysia.js @ 265:056790c4fb0d

add role-aware Epi assistant prompts Add verified June knowledge, guest/member/admin Copilot profiles, profile-isolated session recovery, animated Epi greetings, and a single authoritative runtime config workflow for inference. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 10:50:30 -0700
parents a8976a008a9d
children
line wrap: on
line source

const { Elysia } = require('elysia')
const { node } = require('@elysiajs/node')

const app = new Elysia({ adapter: node() })
	.get('/', () => 'Hi')
	.get('/id/:id', (c) => {
		c.set.headers['x-powered-by'] = 'benchmark'

		return `${c.params.id} ${c.query.name}`
	})
	.post('/json', (c) => c.body, {
		type: 'json'
	})
	.listen(3000)