import { createRoute, listen } from 'bun-crumb';
createRoute({url: '/hello', method: 'GET', handler: (request, response) => {
return response.send('hello world!')
}})

Get more examples in docs

Bun Crumb

Library for creating HTTP servers with Bun

Star on GitHub